浏览代码

BUG: fix for #9014, FATAL_ERROR not ending loops

Bill Hoffman 16 年之前
父节点
当前提交
0a7ec1a4b6
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      Source/cmForEachCommand.cxx
  2. 4 0
      Source/cmWhileCommand.cxx

+ 4 - 0
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

+ 4 - 0
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);