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/cmCPluginAPI.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/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 8 |
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 *) |