diff options
author | Andreas Schneider <asn@samba.org> | 2018-09-01 20:32:04 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2018-10-23 15:38:18 +0200 |
commit | 1ef17288f30cc064c0099e0437f8fade4e739541 (patch) | |
tree | ef225fe69b41fdd36b036104b9deeeb086337f50 /ConfigureChecks.cmake | |
parent | 5bbd6ad51830daa0fa18b8d32fc591e1710cf222 (diff) | |
download | socket_wrapper-1ef17288f30cc064c0099e0437f8fade4e739541.tar.gz socket_wrapper-1ef17288f30cc064c0099e0437f8fade4e739541.tar.xz socket_wrapper-1ef17288f30cc064c0099e0437f8fade4e739541.zip |
cmake: Don't misuse CMAKE_REQUIRED_LIBRARIES
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 8fdb7f4..9ced360 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -74,20 +74,20 @@ if (UNIX) # libsocket (Solaris) check_library_exists(socket getaddrinfo "" HAVE_LIBSOCKET) if (HAVE_LIBSOCKET) - set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} socket) + set(_REQUIRED_LIBRARIES ${_REQUIRED_LIBRARIES} socket) endif (HAVE_LIBSOCKET) # libnsl/inet_pton (Solaris) check_library_exists(nsl inet_pton "" HAVE_LIBNSL) if (HAVE_LIBNSL) - set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} nsl) + set(_REQUIRED_LIBRARIES ${_REQUIRED_LIBRARIES} nsl) endif (HAVE_LIBNSL) endif (NOT LINUX) check_function_exists(getaddrinfo HAVE_GETADDRINFO) endif (UNIX) -set(SWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "socket_wrapper required system libraries") +set(SWRAP_REQUIRED_LIBRARIES ${_REQUIRED_LIBRARIES} CACHE INTERNAL "socket_wrapper required system libraries") # STRUCTS check_struct_has_member("struct in_pktinfo" ipi_addr "sys/types.h;sys/socket.h;netinet/in.h" HAVE_STRUCT_IN_PKTINFO) @@ -253,7 +253,7 @@ unset(CMAKE_REQUIRED_FLAGS) check_library_exists(dl dlopen "" HAVE_LIBDL) if (HAVE_LIBDL) find_library(DLFCN_LIBRARY dl) - set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${DLFCN_LIBRARY}) + set(_REQUIRED_LIBRARIES ${_REQUIRED_LIBRARIES} ${DLFCN_LIBRARY}) endif (HAVE_LIBDL) if (OSX) @@ -267,4 +267,4 @@ endif (NOT WIN32) check_type_size(pid_t SIZEOF_PID_T) -set(SWRAP_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "swrap required system libraries") +set(SWRAP_REQUIRED_LIBRARIES ${_REQUIRED_LIBRARIES} CACHE INTERNAL "swrap required system libraries") |