summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-14 02:57:05 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-14 02:57:05 (GMT)
commit1fe42129d43d659f33ed72e63c26e7c9f8cf64d9 (patch)
tree14e46cb1e8dbb31338cf4fa0ed6f937a218ccb9c /Source/cmMakefile.cxx
parent170fe935d2cdcbfd02e4385a3ca5abf3bf4b4192 (diff)
downloadCMake-1fe42129d43d659f33ed72e63c26e7c9f8cf64d9.zip
CMake-1fe42129d43d659f33ed72e63c26e7c9f8cf64d9.tar.gz
CMake-1fe42129d43d659f33ed72e63c26e7c9f8cf64d9.tar.bz2
ENH: Centralized setting of CMake version number to top-level CMake listfile.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx9
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"))