diff options
Diffstat (limited to 'Utilities/cmcurl/CMake/CurlCheckCSourceRuns.cmake')
-rw-r--r-- | Utilities/cmcurl/CMake/CurlCheckCSourceRuns.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmcurl/CMake/CurlCheckCSourceRuns.cmake b/Utilities/cmcurl/CMake/CurlCheckCSourceRuns.cmake index 6b14af8..e62eebe 100644 --- a/Utilities/cmcurl/CMake/CurlCheckCSourceRuns.cmake +++ b/Utilities/cmcurl/CMake/CurlCheckCSourceRuns.cmake @@ -13,7 +13,7 @@ # CMAKE_REQUIRED_LIBRARIES = list of libraries to link macro(CURL_CHECK_C_SOURCE_RUNS SOURCE VAR) - if("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN") + if(NOT DEFINED "${VAR}") set(message "${VAR}") # If the number of arguments is greater than 2 (SOURCE VAR) if(${ARGC} GREATER 2) @@ -79,5 +79,5 @@ macro(CURL_CHECK_C_SOURCE_RUNS SOURCE VAR) "Return value: ${result_var}\n" "Source file was:\n${src}\n") endif("${result_var}" EQUAL 0) - endif("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN") + endif() endmacro(CURL_CHECK_C_SOURCE_RUNS) |