diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 151ad5e..d75e9eb 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -145,32 +145,18 @@ void cmMakefile::Initialize() unsigned int cmMakefile::GetCacheMajorVersion() { - if(const char* vstr = - this->GetCacheManager()->GetCacheValue("CMAKE_CACHE_MAJOR_VERSION")) - { - unsigned int v=0; - if(sscanf(vstr, "%u", &v) == 1) - { - return v; - } - } - return 0; + return this->GetCacheManager()->GetCacheMajorVersion(); } unsigned int cmMakefile::GetCacheMinorVersion() { - if(const char* vstr = - this->GetCacheManager()->GetCacheValue("CMAKE_CACHE_MINOR_VERSION")) - { - unsigned int v=0; - if(sscanf(vstr, "%u", &v) == 1) - { - return v; - } - } - return 0; + return this->GetCacheManager()->GetCacheMinorVersion(); } +bool cmMakefile::NeedCacheCompatibility(int major, int minor) +{ + return this->GetCacheManager()->NeedCacheCompatibility(major, minor); +} cmMakefile::~cmMakefile() { |