Skip to content

Commit

Permalink
Cmake: Removed some useless empty SET statements.
Browse files Browse the repository at this point in the history
Undefined variables resolve to empty strings and we do not ever test if
the variable is defined thus those SETs are superfluous.
  • Loading branch information
jzakrzewski authored and bagder committed Aug 25, 2014
1 parent febcfab commit 06de7d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CMake/CurlCheckCSourceCompiles.cmake
Expand Up @@ -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})
Expand Down

0 comments on commit 06de7d6

Please sign in to comment.