diff options
author | Brad King <brad.king@kitware.com> | 2014-09-08 14:02:55 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-09-11 19:23:24 (GMT) |
commit | 425acc522ff27014ffcc1d1f902f3702dd6c7aa7 (patch) | |
tree | c33548bb6fbaf58c1f2b8004e87021d2d3c8346d /Utilities/cmcurl/CMakeLists.txt | |
parent | cede5cbd53175be721ee2786cf0e482be3134fcf (diff) | |
download | CMake-425acc522ff27014ffcc1d1f902f3702dd6c7aa7.zip CMake-425acc522ff27014ffcc1d1f902f3702dd6c7aa7.tar.gz CMake-425acc522ff27014ffcc1d1f902f3702dd6c7aa7.tar.bz2 |
cmcurl: Use if(DEFINED) to simplify conditions
Replace old hacks of the form 'if("${VAR}" MATCHES "^${VAR}$")'
with the much simpler 'if(NOT DEFINED ${VAR})'.
Diffstat (limited to 'Utilities/cmcurl/CMakeLists.txt')
-rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index 1b918c9..03f10a0 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -505,7 +505,7 @@ ENDIF(NOT HAVE_SIGSETJMP) # For other curl specific tests, use this macro. MACRO(CURL_INTERNAL_TEST CURL_TEST) - IF("${CURL_TEST}" MATCHES "^${CURL_TEST}$") + IF(NOT DEFINED ${CURL_TEST}) SET(MACRO_CHECK_FUNCTION_DEFINITIONS "-D${CURL_TEST} ${CMAKE_REQUIRED_FLAGS}") IF(CMAKE_REQUIRED_LIBRARIES) @@ -533,7 +533,7 @@ MACRO(CURL_INTERNAL_TEST CURL_TEST) "Performing Curl Test ${CURL_TEST} failed with the following output:\n" "${OUTPUT}\n") ENDIF(${CURL_TEST}) - ENDIF("${CURL_TEST}" MATCHES "^${CURL_TEST}$") + ENDIF() ENDMACRO(CURL_INTERNAL_TEST) # Do curl specific tests |