Skip to content

Commit

Permalink
Cmake: Fix library list provided to cURL tests.
Browse files Browse the repository at this point in the history
The list must be set after those nice CMake tests as we mess with
CMAKE_REQUIRED_LIBRARIES there.
  • Loading branch information
jzakrzewski authored and bagder committed Oct 9, 2014
1 parent cb2438a commit fc61870
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -367,9 +367,6 @@ check_library_exists_concat("idn" idna_to_ascii_lz HAVE_LIBIDN)
# Check for symbol dlopen (same as HAVE_LIBDL)
check_library_exists("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)

# For other tests to use the same libraries
set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})

option(CURL_ZLIB "Set to ON to enable building cURL with zlib support." ON)
set(HAVE_LIBZ OFF)
set(HAVE_ZLIB_H OFF)
Expand Down Expand Up @@ -417,6 +414,9 @@ if(CMAKE_USE_LIBSSH2)
endif(LIBSSH2_FOUND)
endif(CMAKE_USE_LIBSSH2)

# For other tests to use the same libraries
set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})

# If we have features.h, then do the _BSD_SOURCE magic
check_include_file("features.h" HAVE_FEATURES_H)

Expand Down

0 comments on commit fc61870

Please sign in to comment.