diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-24 10:56:12 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-24 10:56:12 +0200 |
commit | a5ec4b7dec54215c3336aa376aa642dfa4a6781e (patch) | |
tree | 2ad2f70fe274c60f72785cc63fb00d8e7e8303a6 /src/plugins/irc/CMakeLists.txt | |
parent | 1e377d0b06188ad1681248faa05c7616ff7776db (diff) | |
download | weechat-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.txt | 7 |
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) |