summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 54a778f..488c41c 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -138,11 +138,16 @@ const char* cmMakefile::GetReleaseVersion()
#if CMake_VERSION_MINOR & 1
return "development";
#else
-# if CMake_VERSION_PATCH == 0
- return "beta";
+# if CMake_VERSION_PATCH == 1
+ return "1-beta";
# else
+# ifdef CMake_VERSION_RC
+ return "patch " CMAKE_TO_STRING(CMake_VERSION_PATCH) " RC-"
+ CMAKE_TO_STRING(CMake_VERSION_RC);
+# else
return "patch " CMAKE_TO_STRING(CMake_VERSION_PATCH);
# endif
+# endif
#endif
}