mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Add a way to remove files from cache
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user