summaryrefslogtreecommitdiff
path: root/src/plugins/xfer
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r--src/plugins/xfer/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/xfer/CMakeLists.txt b/src/plugins/xfer/CMakeLists.txt
index c6c9bfe40..e42af2957 100644
--- a/src/plugins/xfer/CMakeLists.txt
+++ b/src/plugins/xfer/CMakeLists.txt
@@ -35,6 +35,11 @@ set(LINK_LIBS)
list(APPEND LINK_LIBS ${GCRYPT_LDFLAGS})
+if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ # link with resolv lib on Mac OS X
+ list(APPEND LINK_LIBS "resolv")
+endif()
+
target_link_libraries(xfer ${LINK_LIBS})
install(TARGETS xfer LIBRARY DESTINATION ${LIBDIR}/plugins)