diff options
Diffstat (limited to 'Source/cmVersion.cxx')
-rw-r--r-- | Source/cmVersion.cxx | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/Source/cmVersion.cxx b/Source/cmVersion.cxx index 8802fba..3ac02e0 100644 --- a/Source/cmVersion.cxx +++ b/Source/cmVersion.cxx @@ -16,45 +16,12 @@ =========================================================================*/ #include "cmVersion.h" +#include <cmsys/DateStamp.h> + std::string cmVersion::GetReleaseVersion() { #if CMake_VERSION_MINOR & 1 - std::string cver = "Date: 2007-11-14 04:13:18 +0000"; - std::string res = ""; - std::string::size_type cc, len = cver.size(); - bool aftercol = false; - int cnt = 0; - for ( cc = 0; cc < len; cc ++ ) - { - if ( aftercol ) - { - char ch = cver[cc]; - switch ( ch ) - { - case ' ': - case ':': - case '/': - case '-': - case '$': - break; - default: - res += ch; - cnt ++; - } - if ( cnt >= 8 ) - { - return res; - } - } - else - { - if ( cver[cc] == ':' ) - { - aftercol = true; - } - } - } - return res; + return cmsys_DATE_STAMP_STRING_FULL; #else # if CMake_VERSION_PATCH == 1 return "1-beta"; |