diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-12-17 22:05:07 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-12-17 22:05:07 (GMT) |
commit | 46fff6c83a4d5d46ec2e48e70dbb8bee542c28ea (patch) | |
tree | 59d71bcb49bf338cbfbfe710816b17ff9d5c7741 /Modules | |
parent | d1f4fa6bb7acf1ad31483a5440cf43b497471ca8 (diff) | |
download | CMake-46fff6c83a4d5d46ec2e48e70dbb8bee542c28ea.zip CMake-46fff6c83a4d5d46ec2e48e70dbb8bee542c28ea.tar.gz CMake-46fff6c83a4d5d46ec2e48e70dbb8bee542c28ea.tar.bz2 |
STYLE: use IF(NOT ) instead of IF() ELSE() with empty IF() branch
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CTest.cmake | 10 |
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 |