diff options
author | Jakub Zakrzewski <jzakrzewski@e2ebridge.com> | 2014-08-15 14:56:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-08-25 12:44:24 +0200 |
commit | 06de7d69364c95ff1bb31c4999a32f3f1d9aed03 (patch) | |
tree | 33147d919af0dce42cd5d1a1c6e0a7c3e4e68d56 | |
parent | febcfab23da536c3e4cb8422a452f74638a1ee66 (diff) |
Cmake: Removed some useless empty SET statements.
Undefined variables resolve to empty strings and we do not ever test if
the variable is defined thus those SETs are superfluous.
-rw-r--r-- | CMake/CurlCheckCSourceCompiles.cmake | 4 |
1 files changed, 0 insertions, 4 deletions
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}) |