summaryrefslogtreecommitdiffstats
path: root/Modules/CTest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CTest.cmake')
-rw-r--r--Modules/CTest.cmake10
1 files changed, 4 insertions, 6 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 9838bae..7322dbf 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -20,17 +20,15 @@ IF(BUILD_TESTING)
ENDMACRO(SET_IF_NOT_SET)
MACRO(SET_IF_SET var val)
- IF("${val}" MATCHES "^$")
- ELSE("${val}" MATCHES "^$")
+ IF(NOT "${val}" MATCHES "^$")
SET("${var}" "${val}")
- ENDIF("${val}" MATCHES "^$")
+ ENDIF(NOT "${val}" MATCHES "^$")
ENDMACRO(SET_IF_SET)
MACRO(SET_IF_SET_AND_NOT_SET var val)
- IF("${val}" MATCHES "^$")
- ELSE("${val}" MATCHES "^$")
+ IF(NOT "${val}" MATCHES "^$")
SET_IF_NOT_SET("${var}" "${val}")
- ENDIF("${val}" MATCHES "^$")
+ ENDIF(NOT "${val}" MATCHES "^$")
ENDMACRO(SET_IF_SET_AND_NOT_SET)
# Make sure testing is enabled