From: Andreas Schneider Date: Fri, 24 Oct 2014 13:35:19 +0000 (+0200) Subject: cmake: Do not remove libresolv from required libraries. X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fcwrap%2Fresolv_wrapper.git;a=commitdiff_plain;h=7f4d7eb9595c0a9217019348abcaf1d7a3c9695e cmake: Do not remove libresolv from required libraries. Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6dbfc88..41bed3a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -51,6 +51,8 @@ check_include_file(sys/types.h HAVE_SYS_TYPES_H) check_include_file(resolv.h HAVE_RESOLV_H) # FUNCTIONS +set(CMAKE_REQUIRED_LIBRARIES) + find_library(RESOLV_LIRBRARY resolv) if (RESOLV_LIRBRARY) @@ -92,8 +94,6 @@ check_function_exists(__res_search HAVE___RES_SEARCH) check_function_exists(res_nsearch HAVE_RES_NSEARCH) check_function_exists(__res_nsearch HAVE___RES_NSEARCH) -set(CMAKE_REQUIRED_LIBRARIES) - if (UNIX) if (NOT LINUX) # libsocket (Solaris)