diff options
author | Alexander Neundorf <neundorf@kde.org> | 2009-05-10 10:01:59 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2009-05-10 10:01:59 (GMT) |
commit | 8e03bfb57d8175fd8a899323786504faf4762ba6 (patch) | |
tree | 6bd6c151f5cfaa69fa47a97f81b8ca570d395867 /Modules/CTest.cmake | |
parent | 352fb9ff66787f6eaffdfa964794de62877bd965 (diff) | |
download | CMake-8e03bfb57d8175fd8a899323786504faf4762ba6.zip CMake-8e03bfb57d8175fd8a899323786504faf4762ba6.tar.gz CMake-8e03bfb57d8175fd8a899323786504faf4762ba6.tar.bz2 |
STYLE: first lower-casing the string makes comparing its contents easier
Alex
Diffstat (limited to 'Modules/CTest.cmake')
-rw-r--r-- | Modules/CTest.cmake | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake index 40ae7fd..44e8c67 100644 --- a/Modules/CTest.cmake +++ b/Modules/CTest.cmake @@ -122,15 +122,16 @@ IF(BUILD_TESTING) ENDIF(NOT __CTEST_UPDATE_TYPE_COMPLAINED) ENDIF(NOT UPDATE_TYPE) - IF(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]") + STRING(TOLOWER "${UPDATE_TYPE}" _update_type) + IF("${_update_type}" STREQUAL "cvs") SET(UPDATE_COMMAND "${CVSCOMMAND}") SET(UPDATE_OPTIONS "${CVS_UPDATE_OPTIONS}") - ELSE(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]") - IF(UPDATE_TYPE MATCHES "[Ss][Vv][Nn]") + ELSE("${_update_type}" STREQUAL "cvs") + IF("${_update_type}" STREQUAL "svn") SET(UPDATE_COMMAND "${SVNCOMMAND}") SET(UPDATE_OPTIONS "${SVN_UPDATE_OPTIONS}") - ENDIF(UPDATE_TYPE MATCHES "[Ss][Vv][Nn]") - ENDIF(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]") + ENDIF("${_update_type}" STREQUAL "svn") + ENDIF("${_update_type}" STREQUAL "cvs") SET(DART_TESTING_TIMEOUT 1500 CACHE STRING "Maximum time allowed before CTest will kill the test.") |