Sfoglia il codice sorgente

BUG: ParseFile should return false if there was a parse error.

Brad King 18 anni fa
parent
commit
9b0df0d692
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      Source/cmListFileCache.cxx

+ 4 - 0
Source/cmListFileCache.cxx

@@ -139,6 +139,10 @@ bool cmListFile::ParseFile(const char* filename, bool requireProjectCommand)
       this->Functions.insert(this->Functions.begin(),project);
       }
     }
+  if(parseError)
+    {
+    return false;
+    }
   return true;
 }