소스 검색

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);