summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-10 13:21:41 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-10 13:36:58 (GMT)
commit062ed22ec43809068526706d2600297095412911 (patch)
tree92cb142a8d16457b6d1bce47c07289cd899aa59d /Source/cmState.cxx
parenta02e53eb947b61dd25ecd139a213d4062fbc5b62 (diff)
downloadCMake-062ed22ec43809068526706d2600297095412911.zip
CMake-062ed22ec43809068526706d2600297095412911.tar.gz
CMake-062ed22ec43809068526706d2600297095412911.tar.bz2
cmState: Add cache file manipulation wrappers.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index db7519b..9628265 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -147,6 +147,24 @@ bool cmState::IsCacheEntryType(std::string const& key)
return false;
}
+bool cmState::LoadCache(const std::string& path, bool internal,
+ std::set<std::string>& excludes,
+ std::set<std::string>& includes)
+{
+ return this->CMakeInstance->GetCacheManager()->LoadCache(path, internal,
+ excludes, includes);
+}
+
+bool cmState::SaveCache(const std::string& path)
+{
+ return this->CMakeInstance->GetCacheManager()->SaveCache(path);
+}
+
+bool cmState::DeleteCache(const std::string& path)
+{
+ return this->CMakeInstance->GetCacheManager()->DeleteCache(path);
+}
+
std::vector<std::string> cmState::GetCacheEntryKeys() const
{
std::vector<std::string> definitions;