summaryrefslogtreecommitdiffstats
path: root/Source/cmVersion.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-28 21:03:52 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-28 21:03:52 (GMT)
commit04280871698816e504320fea3e76a7add612ba31 (patch)
tree89b58f2483acc1001d04224b79cca8fb53fdd79f /Source/cmVersion.cxx
parent9789fe0ec2989d28880b43c4cebdaefc5bced753 (diff)
downloadCMake-04280871698816e504320fea3e76a7add612ba31.zip
CMake-04280871698816e504320fea3e76a7add612ba31.tar.gz
CMake-04280871698816e504320fea3e76a7add612ba31.tar.bz2
ENH: add release candidate to versions
Diffstat (limited to 'Source/cmVersion.cxx')
-rw-r--r--Source/cmVersion.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVersion.cxx b/Source/cmVersion.cxx
index bc0421b..6e2fa17 100644
--- a/Source/cmVersion.cxx
+++ b/Source/cmVersion.cxx
@@ -59,7 +59,12 @@ std::string cmVersion::GetReleaseVersion()
# 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
}