aboutsummaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorJakub Zakrzewski <jzakrzewski@e2ebridge.com>2014-08-15 14:56:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-08-25 12:44:24 +0200
commit06de7d69364c95ff1bb31c4999a32f3f1d9aed03 (patch)
tree33147d919af0dce42cd5d1a1c6e0a7c3e4e68d56 /CMake
parentfebcfab23da536c3e4cb8422a452f74638a1ee66 (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.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/CurlCheckCSourceCompiles.cmake4
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})