summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-14 18:29:32 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-14 18:29:32 +0200
commita99d136018eae1099ffa32b660259632694ee6ed (patch)
treeca67b7cc3a7422461ce4acf53342a01ed67cb159 /src/CMakeLists.txt
parent3a245686caa30294a6b5cfefa78ee92513c56daa (diff)
downloadweechat-a99d136018eae1099ffa32b660259632694ee6ed.zip
core: add new plugin "script" (scripts manager, replacing scripts weeget.py and script.pl)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 503737b09..3e39cd328 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -90,13 +90,9 @@ IF(ENABLE_NLS)
ENDIF(ENABLE_NLS)
# Check for libgcrypt
-IF(ENABLE_GCRYPT)
- FIND_PACKAGE(Gcrypt)
- IF(GCRYPT_FOUND)
- ADD_DEFINITIONS(-DHAVE_GCRYPT)
- LIST(APPEND EXTRA_LIBS "${GCRYPT_LDFLAGS}")
- ENDIF(GCRYPT_FOUND)
-ENDIF(ENABLE_GCRYPT)
+FIND_PACKAGE(Gcrypt REQUIRED)
+ADD_DEFINITIONS(-DHAVE_GCRYPT)
+LIST(APPEND EXTRA_LIBS "${GCRYPT_LDFLAGS}")
# Check for GnuTLS
IF(ENABLE_GNUTLS)
@@ -112,12 +108,8 @@ IF(ENABLE_GNUTLS)
ENDIF(ENABLE_GNUTLS)
# Check for zlib
-IF(ENABLE_ZLIB)
- FIND_PACKAGE(ZLIB)
- IF(ZLIB_FOUND)
- ADD_DEFINITIONS(-DHAVE_ZLIB)
- ENDIF(ZLIB_FOUND)
-ENDIF(ENABLE_ZLIB)
+FIND_PACKAGE(ZLIB REQUIRED)
+ADD_DEFINITIONS(-DHAVE_ZLIB)
# Check for iconv
FIND_PACKAGE(Iconv)