summaryrefslogtreecommitdiff
path: root/Source/cmWhileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-05-13 11:08:29 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2009-05-13 11:08:29 -0400
commit0a7ec1a4b6fb822968f38e4fc147fb0dd73aaed8 (patch)
tree018a33ee7b2a520dd56de67077a701f149ef31ce /Source/cmWhileCommand.cxx
parentcecfce23a5138a0f44a9231d158c1d8541233a36 (diff)
downloadcmake-0a7ec1a4b6fb822968f38e4fc147fb0dd73aaed8.tar.gz
BUG: fix for #9014, FATAL_ERROR not ending loops
Diffstat (limited to 'Source/cmWhileCommand.cxx')
-rw-r--r--Source/cmWhileCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx
index cc1651207a..e51f2532ce 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);