Browse Source

BUG: If there is a fatal error, stop processing list file

Andy Cedilnik 20 years ago
parent
commit
a9b729128f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmMakefile.cxx

+ 4 - 0
Source/cmMakefile.cxx

@@ -389,6 +389,10 @@ bool cmMakefile::ReadListFile(const char* filename_in, const char *external_in)
   for(size_t i =0; i < numberFunctions; ++i)
     {
     this->ExecuteCommand(lf->m_Functions[i]);
+    if ( cmSystemTools::GetFatalErrorOccured() )
+      {
+      return false;
+      }
     }
 
   // send scope ended to and function blockers