diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index e1ca49c85..768db326b 100644 --- a/Source/cmListFileCache.cxx +++ b/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; }