From ac478e6c708941c7f028b4d6a7a7dd0732f53bff Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Fri, 30 Dec 2016 18:09:54 +0100 Subject: [PATCH] Fix some OSX linker problems. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b350c4..488b334 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,12 @@ if(NOT HAVE_B64_IN_LIBC) if(HAVE_B64_IN_LIBRESOLV) set(RESOLV_LIB "resolv") endif(HAVE_B64_IN_LIBRESOLV) + + # the function check somehow fails for apple but the function is there + if(APPLE) + set(RESOLV_LIB "resolv") + endif(APPLE) + endif(NOT HAVE_B64_IN_LIBC) if(Threads_FOUND)