diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 7143f59..b386041 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -57,6 +57,15 @@ cmMakefile::cmMakefile() this->AddDefaultDefinitions(); } +const char* cmMakefile::GetReleaseVersion() +{ +#if CMake_VERSION_MINOR & 1 + return "development"; +#else + return "patch " CMAKE_TO_STRING(CMake_VERSION_PATCH); +#endif +} + unsigned int cmMakefile::GetCacheMajorVersion() { if(!this->GetCacheManager()->GetCacheValue("CMAKE_CACHE_MAJOR_VERSION")) |