]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: link against libresolv on OSX
authorKefu Chai <kchai@redhat.com>
Sat, 9 Sep 2017 18:26:35 +0000 (02:26 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index aa56c21dc63a75b8bc03d174189430d4c54c36d0..217e4a23524aaaeebe811d08ed42fc81aebd238f 100644 (file)
@@ -174,10 +174,10 @@ set(EXTRALIBS ${CMAKE_DL_LIBS} ${ATOMIC_OPS_LIBRARIES})
 if(NOT APPLE)
   list(APPEND EXTRALIBS rt)
 endif()
-if(LINUX)
+if(LINUX OR APPLE)
   set(LIB_RESOLV resolv)
   list(APPEND EXTRALIBS ${LIB_RESOLV})
-endif(LINUX)
+endif()
 
 option(WITH_PROFILER "build extra profiler binaries" OFF)
 if(WITH_PROFILER)