summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-06 11:32:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-07 21:25:35 (GMT)
commit1f2c12ebd196f3d23aa40d85c965654dbc36d0ad (patch)
treecf7bc91447ecfe4dfe87f95156e86ef0cc5803f6 /Source/cmCPluginAPI.cxx
parent97c50a8dbd9f1ca5026f60e4a224e9a087e01f0e (diff)
downloadCMake-1f2c12ebd196f3d23aa40d85c965654dbc36d0ad.zip
CMake-1f2c12ebd196f3d23aa40d85c965654dbc36d0ad.tar.gz
CMake-1f2c12ebd196f3d23aa40d85c965654dbc36d0ad.tar.bz2
cmMakefile: Remove cache version accessors.
They are only used by legacy code. Inline them there to simplify cmMakefile.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 691d80d..987a7b1 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -51,12 +51,14 @@ void CCONV cmSetError(void *info, const char *err)
unsigned int CCONV cmGetCacheMajorVersion(void *arg)
{
cmMakefile *mf = static_cast<cmMakefile *>(arg);
- return mf->GetCacheMajorVersion();
+ cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager();
+ return manager->GetCacheMajorVersion();
}
unsigned int CCONV cmGetCacheMinorVersion(void *arg)
{
cmMakefile *mf = static_cast<cmMakefile *>(arg);
- return mf->GetCacheMinorVersion();
+ cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager();
+ return manager->GetCacheMinorVersion();
}
unsigned int CCONV cmGetMajorVersion(void *)