summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmForEachCommand.cxx4
-rw-r--r--Source/cmWhileCommand.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx
index 7a03523..4dead90 100644
--- a/Source/cmForEachCommand.cxx
+++ b/Source/cmForEachCommand.cxx
@@ -72,6 +72,10 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
mf.AddDefinition(this->Args[0].c_str(),oldDef.c_str());
return true;
}
+ if(cmSystemTools::GetFatalErrorOccured() )
+ {
+ return true;
+ }
}
}
// restore the variable to its prior value
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx
index cc16512..e51f253 100644
--- a/Source/cmWhileCommand.cxx
+++ b/Source/cmWhileCommand.cxx
@@ -60,6 +60,10 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
{
return true;
}
+ if(cmSystemTools::GetFatalErrorOccured() )
+ {
+ return true;
+ }
}
expandedArguments.clear();
mf.ExpandArguments(this->Args, expandedArguments);