summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-21 17:50:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-21 17:50:48 (GMT)
commit2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7 (patch)
tree2e7ba2c7d45537691296edc194f605f623bcc3a7 /Source/cmMakefile.cxx
parent110bc04bd0125ef746ad8ea239c632831f7c5075 (diff)
downloadCMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.zip
CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.tar.gz
CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.tar.bz2
add a fatal error, and make sure c and c++ compilers work before using them
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 75878ce..a567f83 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -176,7 +176,7 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff)
cmCommand* usedCommand = rm->Clone();
usedCommand->SetMakefile(this);
bool keepCommand = false;
- if(usedCommand->GetEnabled())
+ if(usedCommand->GetEnabled() && !cmSystemTools::GetFatalErrorOccured())
{
// if not running in inherit mode or
// if the command is inherited then InitialPass it.
@@ -208,12 +208,15 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff)
}
else
{
- cmOStringStream error;
- error << "Error in cmake code at\n"
- << lff.m_FilePath << ":" << lff.m_Line << ":\n"
- << "Unknown CMake command \"" << lff.m_Name.c_str() << "\".";
- cmSystemTools::Error(error.str().c_str());
- result = false;
+ if(!cmSystemTools::GetFatalErrorOccured())
+ {
+ cmOStringStream error;
+ error << "Error in cmake code at\n"
+ << lff.m_FilePath << ":" << lff.m_Line << ":\n"
+ << "Unknown CMake command \"" << lff.m_Name.c_str() << "\".";
+ cmSystemTools::Error(error.str().c_str());
+ result = false;
+ }
}
return result;