1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

Fix compilation bug with gnutls for IRC plugin

This commit is contained in:
Sebastien Helleu
2008-05-24 10:56:12 +02:00
parent 1e377d0b06
commit a5ec4b7dec
2 changed files with 10 additions and 1 deletions
+6 -1
View File
@@ -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)