summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.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/cmCPluginAPI.cxx
parent95b0d761a75fd2da041eacc9ee22b89043ae301f (diff)
downloadCMake-b5212c68def0395642fc51dcfd499557eb9481d9.zip
CMake-b5212c68def0395642fc51dcfd499557eb9481d9.tar.gz
CMake-b5212c68def0395642fc51dcfd499557eb9481d9.tar.bz2
cmState: Add API for cache version.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 7da334e..6fa4ebb 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -51,14 +51,14 @@ void CCONV cmSetError(void *info, const char *err)
unsigned int CCONV cmGetCacheMajorVersion(void *arg)
{
cmMakefile *mf = static_cast<cmMakefile *>(arg);
- cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager();
- return manager->GetCacheMajorVersion();
+ cmState *state = mf->GetState();
+ return state->GetCacheMajorVersion();
}
unsigned int CCONV cmGetCacheMinorVersion(void *arg)
{
cmMakefile *mf = static_cast<cmMakefile *>(arg);
- cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager();
- return manager->GetCacheMinorVersion();
+ cmState *state = mf->GetState();
+ return state->GetCacheMinorVersion();
}
unsigned int CCONV cmGetMajorVersion(void *)