diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-07 21:00:15 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-07 21:00:15 (GMT) |
commit | 895a105a85726bdd24c9d85d1ddf0fcb7bffe27c (patch) | |
tree | 9146242bce0eb97b2472d464329cc97833a33977 /CMakeLists.txt | |
parent | de46b1c29833330d0c0f704e1af842a0c51618be (diff) | |
download | CMake-895a105a85726bdd24c9d85d1ddf0fcb7bffe27c.zip CMake-895a105a85726bdd24c9d85d1ddf0fcb7bffe27c.tar.gz CMake-895a105a85726bdd24c9d85d1ddf0fcb7bffe27c.tar.bz2 |
ENH: MATH is not in bootstrap cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a5030e3..c4c5b8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -348,8 +348,8 @@ SET(CMake_VERSION_PATCH 0) # CVS versions are odd, if this is an odd minor version # then set the CMake_VERSION_DATE variable -MATH(EXPR OUT "${CMake_VERSION_MINOR} & 1") -IF(OUT EQUAL 1) +IF("${CMake_VERSION_MINOR}" MATCHES "[13579]$") + message("odd version") # extract the version Date from the cmVersion.cxx file FILE(READ "${CMake_SOURCE_DIR}/Source/cmVersion.cxx" CMAKE_VERSION_FILE_CONTENT) @@ -359,7 +359,7 @@ IF(OUT EQUAL 1) CMake_VERSION_DATE "${CMake_VERSION_DATE}") STRING(REPLACE "/" "" CMake_VERSION_DATE "${CMake_VERSION_DATE}") -ENDIF(OUT EQUAL 1) +ENDIF("${CMake_VERSION_MINOR}" MATCHES "[13579]$") SET(CMake_VERSION "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}") SET(CMake_VERSION_FULL "${CMake_VERSION}.${CMake_VERSION_PATCH}") |