mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
cmake: clear CMAKE_REQUIRED_LIBRARIES after each use
This fixes GSSAPI builds with the libraries in a non-standard location. The testing for recv() were failing because it failed to link the Kerberos libraries, which are not needed for this or subsequent tests. fixes #3743 closes #3744
This commit is contained in:
parent
be17f298ff
commit
ff1cb97517
@ -469,6 +469,7 @@ if(NOT CURL_DISABLE_LDAP)
|
|||||||
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB})
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB})
|
||||||
endif()
|
endif()
|
||||||
check_c_source_compiles("${_SRC_STRING}" NOT_NEED_LBER_H)
|
check_c_source_compiles("${_SRC_STRING}" NOT_NEED_LBER_H)
|
||||||
|
unset(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
if(NOT_NEED_LBER_H)
|
if(NOT_NEED_LBER_H)
|
||||||
set(NEED_LBER_H OFF)
|
set(NEED_LBER_H OFF)
|
||||||
@ -564,6 +565,7 @@ if(CMAKE_USE_LIBSSH2)
|
|||||||
check_function_exists(libssh2_scp_send64 HAVE_LIBSSH2_SCP_SEND64)
|
check_function_exists(libssh2_scp_send64 HAVE_LIBSSH2_SCP_SEND64)
|
||||||
check_function_exists(libssh2_session_handshake HAVE_LIBSSH2_SESSION_HANDSHAKE)
|
check_function_exists(libssh2_session_handshake HAVE_LIBSSH2_SESSION_HANDSHAKE)
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES "")
|
set(CMAKE_EXTRA_INCLUDE_FILES "")
|
||||||
|
unset(CMAKE_REQUIRED_LIBRARIES)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -611,6 +613,7 @@ if(CMAKE_USE_GSSAPI)
|
|||||||
if(NOT HAVE_GSS_C_NT_HOSTBASED_SERVICE)
|
if(NOT HAVE_GSS_C_NT_HOSTBASED_SERVICE)
|
||||||
set(HAVE_OLD_GSSMIT ON)
|
set(HAVE_OLD_GSSMIT ON)
|
||||||
endif()
|
endif()
|
||||||
|
unset(CMAKE_REQUIRED_LIBRARIES)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user