summaryrefslogtreecommitdiff
path: root/src/plugins/irc/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-05-24 10:56:12 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-05-24 10:56:12 +0200
commita5ec4b7dec54215c3336aa376aa642dfa4a6781e (patch)
tree2ad2f70fe274c60f72785cc63fb00d8e7e8303a6 /src/plugins/irc/CMakeLists.txt
parent1e377d0b06188ad1681248faa05c7616ff7776db (diff)
downloadweechat-a5ec4b7dec54215c3336aa376aa642dfa4a6781e.zip
Fix compilation bug with gnutls for IRC plugin
Diffstat (limited to 'src/plugins/irc/CMakeLists.txt')
-rw-r--r--src/plugins/irc/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/irc/CMakeLists.txt b/src/plugins/irc/CMakeLists.txt
index bb5bc4e53..620f8726c 100644
--- a/src/plugins/irc/CMakeLists.txt
+++ b/src/plugins/irc/CMakeLists.txt
@@ -34,6 +34,11 @@ SET_TARGET_PROPERTIES(irc PROPERTIES PREFIX "")
CHECK_INCLUDE_FILES("regex.h" HAVE_REGEX_H)
CHECK_FUNCTION_EXISTS(regexec HAVE_REGEXEC)
-TARGET_LINK_LIBRARIES(irc)
+IF(GNUTLS_FOUND)
+ INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_PATH})
+ TARGET_LINK_LIBRARIES(irc ${GNUTLS_LIBRARY})
+ELSE(GNUTLS_FOUND)
+ TARGET_LINK_LIBRARIES(irc)
+ENDIF(GNUTLS_FOUND)
INSTALL(TARGETS irc LIBRARY DESTINATION lib/${PROJECT_NAME}/plugins)