From 5ab6c0f0ed39136bd778a6f982691e5142a7aceb Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 12 Mar 2008 21:06:32 -0400 Subject: ENH: remove abort calls and replace with an IssueMessage INTERANL_ERROR, better to not crash on the end user. --- Source/cmSourceFileLocation.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Source/cmSourceFileLocation.cxx') diff --git a/Source/cmSourceFileLocation.cxx b/Source/cmSourceFileLocation.cxx index 159f22f6b6..71c2f8f8e8 100644 --- a/Source/cmSourceFileLocation.cxx +++ b/Source/cmSourceFileLocation.cxx @@ -173,7 +173,13 @@ bool cmSourceFileLocation::Matches(cmSourceFileLocation const& loc) // Each side has a directory relative to a different location. // This can occur when referencing a source file from a different // directory. This is not yet allowed. - abort(); + this->Makefile-> + IssueMessage(cmake::INTERNAL_ERROR, + "Matches error: Each side has a directory relative to a different" + " location. This can occur when referencing a " + "source file from a different directory. " + "This is not yet allowed."); + return false; } else if(this->AmbiguousDirectory) { -- cgit v1.2.1