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