summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-10 12:34:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-10 13:36:58 (GMT)
commitb5212c68def0395642fc51dcfd499557eb9481d9 (patch)
treec5d390892ad8059fcda4318feb40ed65cae0942c /Source/cmState.cxx
parent95b0d761a75fd2da041eacc9ee22b89043ae301f (diff)
downloadCMake-b5212c68def0395642fc51dcfd499557eb9481d9.zip
CMake-b5212c68def0395642fc51dcfd499557eb9481d9.tar.gz
CMake-b5212c68def0395642fc51dcfd499557eb9481d9.tar.bz2
cmState: Add API for cache version.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index 9628265..3aad7f5 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -677,6 +677,16 @@ bool cmState::UseMSYSShell() const
return this->MSYSShell;
}
+unsigned int cmState::GetCacheMajorVersion() const
+{
+ return this->CMakeInstance->GetCacheManager()->GetCacheMajorVersion();
+}
+
+unsigned int cmState::GetCacheMinorVersion() const
+{
+ return this->CMakeInstance->GetCacheManager()->GetCacheMinorVersion();
+}
+
const char* cmState::GetBinaryDirectory() const
{
return this->BinaryDirectory.c_str();