diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/plugins/irc/CMakeLists.txt | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 7ff067270..a1a87b495 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -36,5 +36,9 @@ INCLUDE(CheckSymbolExists) CHECK_INCLUDE_FILES("sys/file.h" HAVE_SYS_FILE_H) CHECK_SYMBOL_EXISTS(flock "sys/file.h" HAVE_FLOCK) +IF(GNUTLS_FOUND) + INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_PATH}) +ENDIF(GNUTLS_FOUND) + INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) ADD_LIBRARY(weechat_core STATIC ${LIB_CORE_SRC}) 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) |