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-06 15:58:54 (GMT)
commit08c642c6ae47fd075fe1060fc0e28d8a24cc3c00 (patch)
treec4887cdd0e1991d8833923ddfdad7dd7986dbfd8 /Source/cmCPluginAPI.cxx
parentcec8f97e5717fac279d310f3f0b9e849a0e59706 (diff)
downloadCMake-08c642c6ae47fd075fe1060fc0e28d8a24cc3c00.zip
CMake-08c642c6ae47fd075fe1060fc0e28d8a24cc3c00.tar.gz
CMake-08c642c6ae47fd075fe1060fc0e28d8a24cc3c00.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 *)