diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-19 18:34:15 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-19 18:34:15 (GMT) |
commit | 0301b8366b1cd0ae39ff92589f75be70746cfe3a (patch) | |
tree | a06f4c2fb8d60cb9956e74effd6a7f876f08f24d /Source/cmListFileCache.cxx | |
parent | 7dbff466389f58db2be556f03f32f55a9bb8c92a (diff) | |
download | CMake-0301b8366b1cd0ae39ff92589f75be70746cfe3a.zip CMake-0301b8366b1cd0ae39ff92589f75be70746cfe3a.tar.gz CMake-0301b8366b1cd0ae39ff92589f75be70746cfe3a.tar.bz2 |
Add a way to remove files from cache
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 10 |
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; + } +} |