summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/plugins/irc/CMakeLists.txt2
-rw-r--r--src/plugins/script/CMakeLists.txt4
3 files changed, 3 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1534ab408..8c4f316c6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -95,7 +95,7 @@ ENDIF(ENABLE_NLS)
# Check for libgcrypt
FIND_PACKAGE(Gcrypt REQUIRED)
ADD_DEFINITIONS(-DHAVE_GCRYPT)
-LIST(APPEND EXTRA_LIBS "${GCRYPT_LDFLAGS}")
+LIST(APPEND EXTRA_LIBS ${GCRYPT_LDFLAGS})
# Check for GnuTLS
IF(ENABLE_GNUTLS)
diff --git a/src/plugins/irc/CMakeLists.txt b/src/plugins/irc/CMakeLists.txt
index d38c14244..978e2b0e2 100644
--- a/src/plugins/irc/CMakeLists.txt
+++ b/src/plugins/irc/CMakeLists.txt
@@ -52,7 +52,7 @@ IF(GNUTLS_FOUND)
LIST(APPEND LINK_LIBS ${GNUTLS_LIBRARY})
ENDIF(GNUTLS_FOUND)
-LIST(APPEND LINK_LIBS gcrypt)
+LIST(APPEND LINK_LIBS ${GCRYPT_LDFLAGS})
TARGET_LINK_LIBRARIES(irc ${LINK_LIBS})
diff --git a/src/plugins/script/CMakeLists.txt b/src/plugins/script/CMakeLists.txt
index e1d8b5570..3a9d9de77 100644
--- a/src/plugins/script/CMakeLists.txt
+++ b/src/plugins/script/CMakeLists.txt
@@ -34,9 +34,7 @@ IF(ZLIB_FOUND)
LIST(APPEND LINK_LIBS ${ZLIB_LIBRARY})
ENDIF(ZLIB_FOUND)
-IF(GCRYPT_FOUND)
- LIST(APPEND LINK_LIBS gcrypt)
-ENDIF(GCRYPT_FOUND)
+LIST(APPEND LINK_LIBS ${GCRYPT_LDFLAGS})
TARGET_LINK_LIBRARIES(script ${LINK_LIBS})