diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-13 01:06:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-13 01:06:32 (GMT) |
commit | 5ab6c0f0ed39136bd778a6f982691e5142a7aceb (patch) | |
tree | 69b11472960aa7b64dea7527c42526a66671c197 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 8bf388109d1d95d1f269b6e78c90e88f217bafa3 (diff) | |
download | CMake-5ab6c0f0ed39136bd778a6f982691e5142a7aceb.zip CMake-5ab6c0f0ed39136bd778a6f982691e5142a7aceb.tar.gz CMake-5ab6c0f0ed39136bd778a6f982691e5142a7aceb.tar.bz2 |
ENH: remove abort calls and replace with an IssueMessage INTERANL_ERROR, better to not crash on the end user.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 158a019..fc5acc9 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1915,7 +1915,10 @@ cmLocalUnixMakefileGenerator3 // Make sure we never hit this old case. if(source.GetProperty("MACOSX_PACKAGE_LOCATION")) { - abort(); + std::string msg = "MACOSX_PACKAGE_LOCATION set on source file: "; + msg += source.GetFullPath(); + this->GetMakefile()->IssueMessage(cmake::INTERNAL_ERROR, + msg.c_str()); } // Start with the target directory. |