summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-11-19 18:42:05 (GMT)
committerBrad King <brad.king@kitware.com>2007-11-19 18:42:05 (GMT)
commit9b0df0d6922810da15431fef507bf82fdd8d94a4 (patch)
tree3b44007462c214564434d21b456891ab38b7be05 /Source/cmListFileCache.cxx
parente9d99f13ecf7e95a145a90919d458a4f314975e5 (diff)
downloadCMake-9b0df0d6922810da15431fef507bf82fdd8d94a4.zip
CMake-9b0df0d6922810da15431fef507bf82fdd8d94a4.tar.gz
CMake-9b0df0d6922810da15431fef507bf82fdd8d94a4.tar.bz2
BUG: ParseFile should return false if there was a parse error.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index e1ca49c..768db32 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;
}