diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-05-13 15:08:29 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-05-13 15:08:29 (GMT) |
commit | 0a7ec1a4b6fb822968f38e4fc147fb0dd73aaed8 (patch) | |
tree | 018a33ee7b2a520dd56de67077a701f149ef31ce /Source/cmForEachCommand.cxx | |
parent | cecfce23a5138a0f44a9231d158c1d8541233a36 (diff) | |
download | CMake-0a7ec1a4b6fb822968f38e4fc147fb0dd73aaed8.zip CMake-0a7ec1a4b6fb822968f38e4fc147fb0dd73aaed8.tar.gz CMake-0a7ec1a4b6fb822968f38e4fc147fb0dd73aaed8.tar.bz2 |
BUG: fix for #9014, FATAL_ERROR not ending loops
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r-- | Source/cmForEachCommand.cxx | 4 |
1 files changed, 4 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 |