diff options
author | Brad King <brad.king@kitware.com> | 2007-11-19 18:42:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-11-19 18:42:05 (GMT) |
commit | 9b0df0d6922810da15431fef507bf82fdd8d94a4 (patch) | |
tree | 3b44007462c214564434d21b456891ab38b7be05 /Source/cmListFileCache.cxx | |
parent | e9d99f13ecf7e95a145a90919d458a4f314975e5 (diff) | |
download | CMake-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.cxx | 4 |
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; } |