summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-29 21:44:22 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-29 21:44:22 (GMT)
commit521d8d9410c7c7bb5958357933c9759035f51828 (patch)
treebe128f3ce5a15f3aedd02601de35a2018cbc6cbc /Source/cmListFileCache.cxx
parente57a982136f654e21607ce8db0d890dfd65a0878 (diff)
downloadCMake-521d8d9410c7c7bb5958357933c9759035f51828.zip
CMake-521d8d9410c7c7bb5958357933c9759035f51828.tar.gz
CMake-521d8d9410c7c7bb5958357933c9759035f51828.tar.bz2
Improvements to the curses interface.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index 19eafac..6d56151 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -71,16 +71,21 @@ bool cmListFileCache::CacheFile(const char* path)
std::vector<std::string> arguments;
cmListFile inFile;
inFile.m_ModifiedTime = cmSystemTools::ModifiedTime(path);
+ bool parseError;
while ( fin )
{
cmListFileFunction inFunction;
if(cmSystemTools::ParseFunction(fin,
inFunction.m_Name,
inFunction.m_Arguments,
- path))
+ path, parseError))
{
inFile.m_Functions.push_back(inFunction);
}
+ if (parseError)
+ {
+ inFile.m_ModifiedTime = 0;
+ }
}
m_ListFileCache[path] = inFile;
return true;