diff options
author | Brad King <brad.king@kitware.com> | 2007-11-21 17:55:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-11-21 17:55:24 (GMT) |
commit | 70adbcee0d3a60736d2b88f2ca3fbd8f1d931c44 (patch) | |
tree | b7c9baa1bc2dba6230e58797f2c6c09cd2eea601 /CMakeLists.txt | |
parent | d1ad16f4384d7719d29b6aeb20230916556660a6 (diff) | |
download | CMake-70adbcee0d3a60736d2b88f2ca3fbd8f1d931c44.zip CMake-70adbcee0d3a60736d2b88f2ca3fbd8f1d931c44.tar.gz CMake-70adbcee0d3a60736d2b88f2ca3fbd8f1d931c44.tar.bz2 |
BUG: Fixed construction of CMake_VERSION_DATE to use KWSys DateStamp feature now that cmVersion.cxx is not updated nightly anymore.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6597c0d..ee10117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -349,15 +349,10 @@ SET(CMake_VERSION_PATCH 0) # CVS versions are odd, if this is an odd minor version # then set the CMake_VERSION_DATE variable IF("${CMake_VERSION_MINOR}" MATCHES "[13579]$") - # extract the version Date from the cmVersion.cxx file - FILE(READ "${CMake_SOURCE_DIR}/Source/cmVersion.cxx" - CMAKE_VERSION_FILE_CONTENT) - STRING(REGEX MATCH "\\$Date: ([^ ]*) " - CMake_VERSION_DATE "${CMAKE_VERSION_FILE_CONTENT}") - STRING(REGEX REPLACE "\\$Date: ([^ ]*) " "\\1" - CMake_VERSION_DATE "${CMake_VERSION_DATE}") - STRING(REPLACE "/" "" CMake_VERSION_DATE - "${CMake_VERSION_DATE}") + INCLUDE(${CMake_SOURCE_DIR}/Source/kwsys/kwsysDateStamp.cmake) + SET(CMake_VERSION_DATE + "${KWSYS_DATE_STAMP_YEAR}${KWSYS_DATE_STAMP_MONTH}${KWSYS_DATE_STAMP_DAY}" + ) ENDIF("${CMake_VERSION_MINOR}" MATCHES "[13579]$") SET(CMake_VERSION "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}") |