mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
cmState: Add API for cache version.
This commit is contained in:
@@ -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 *)
|
||||
|
||||
Reference in New Issue
Block a user