summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-05-20 19:08:18 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-05-20 19:08:18 (GMT)
commitd7c6f51d00510175ecc61709fd22ae98889e145c (patch)
tree6ac7e6d6a6524e08a501265ed3cca34b6b33020f /Source/cmCacheManager.cxx
parent6665adc3ff406f97ca126b8700d0da6ca7cc6e5a (diff)
downloadCMake-d7c6f51d00510175ecc61709fd22ae98889e145c.zip
CMake-d7c6f51d00510175ecc61709fd22ae98889e145c.tar.gz
CMake-d7c6f51d00510175ecc61709fd22ae98889e145c.tar.bz2
updates to gui to delete cache
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index f77964f..01a3411 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -520,6 +520,14 @@ bool cmCacheManager::SaveCache(const char* path)
return true;
}
+bool cmCacheManager::DeleteCache(const char* path)
+{
+ std::string cacheFile = path;
+ cacheFile += "/CMakeCache.txt";
+ cmSystemTools::RemoveFile(cacheFile.c_str());
+ return true;
+}
+
void cmCacheManager::OutputHelpString(std::ofstream& fout,
const std::string& helpString)
{