diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-01-01 14:53:41 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-01-01 14:53:41 +0100 |
commit | c9fbb917e06912c0c9b0fe55560fc1cb23057b82 (patch) | |
tree | 6a633cc3214f1bfe737f656186da3d69f3831cfc /src/plugins/xfer | |
parent | 3752e97be1fcf7b016abe7789d42591acac561c4 (diff) | |
download | weechat-c9fbb917e06912c0c9b0fe55560fc1cb23057b82.zip |
irc, xfer: fix compilation on Mac OS X (add link with resolv) (issue #276)
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r-- | src/plugins/xfer/CMakeLists.txt | 5 |
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) |