diff --git a/CMake/CurlCheckCSourceCompiles.cmake b/CMake/CurlCheckCSourceCompiles.cmake index b63276809..2cff1c803 100644 --- a/CMake/CurlCheckCSourceCompiles.cmake +++ b/CMake/CurlCheckCSourceCompiles.cmake @@ -25,14 +25,10 @@ macro(CURL_CHECK_C_SOURCE_COMPILES SOURCE VAR) if(CMAKE_REQUIRED_LIBRARIES) set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES "-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}") - else(CMAKE_REQUIRED_LIBRARIES) - set(CURL_CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES) endif(CMAKE_REQUIRED_LIBRARIES) if(CMAKE_REQUIRED_INCLUDES) set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES "-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}") - else(CMAKE_REQUIRED_INCLUDES) - set(CURL_CHECK_C_SOURCE_COMPILES_ADD_INCLUDES) endif(CMAKE_REQUIRED_INCLUDES) set(src "") foreach(def ${EXTRA_DEFINES})