diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-10 12:34:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-10 13:36:58 (GMT) |
commit | b5212c68def0395642fc51dcfd499557eb9481d9 (patch) | |
tree | c5d390892ad8059fcda4318feb40ed65cae0942c /Source/cmState.cxx | |
parent | 95b0d761a75fd2da041eacc9ee22b89043ae301f (diff) | |
download | CMake-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.cxx | 10 |
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(); |