summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index 83dd3cf..0b6e0b8 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -109,3 +109,13 @@ bool cmListFileCache::CacheFile(const char* path)
m_ListFileCache[path] = inFile;
return true;
}
+
+void cmListFileCache::FlushCache(const char* path)
+{
+ ListFileMap::iterator it = m_ListFileCache.find(path);
+ if ( it != m_ListFileCache.end() )
+ {
+ m_ListFileCache.erase(it);
+ return;
+ }
+}