summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 12c7c80..adce896 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -389,6 +389,10 @@ bool cmMakefile::ReadListFile(const char* filename_in, const char *external_in)
for(size_t i =0; i < numberFunctions; ++i)
{
this->ExecuteCommand(lf->m_Functions[i]);
+ if ( cmSystemTools::GetFatalErrorOccured() )
+ {
+ return false;
+ }
}
// send scope ended to and function blockers