From 8e03bfb57d8175fd8a899323786504faf4762ba6 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 10 May 2009 06:01:59 -0400 Subject: STYLE: first lower-casing the string makes comparing its contents easier Alex --- Modules/CTest.cmake | 11 ++++++----- 1 file 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.") -- cgit v0.12