summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
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;