]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another stupid workaround
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Nov 2016 12:38:36 +0000 (12:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Nov 2016 12:38:36 +0000 (12:38 +0000)
CMakeLists.txt

index e5cb74698460d433fb8c7ff87e638cfefaddec74..28019d77dc2bca3c723cab7755872aa4a10f5927 100644 (file)
@@ -674,6 +674,9 @@ ProcessPackage(GMIME LIBRARY gmime-2.6 gmime-2.4 gmime-2.2 gmime-2
        INCLUDE gmime/gmime.h
        INCLUDE_SUFFIXES include/gmime include/gmime-2.0 include/gmime-2.4 include/gmime-2.6
        ROOT ${GMIME_ROOT_DIR} MODULES gmime-2.6 gmime-2.4 gmime-2.0)
+IF(GMIME_ROOT_DIR)
+       LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lz")
+ENDIF()
 ProcessPackage(LIBEVENT LIBRARY event INCLUDE event.h INCLUDE_SUFFIXES include/event
        ROOT ${LIBEVENT_ROOT_DIR} MODULES event libevent)
 ProcessPackage(SQLITE3 LIBRARY sqlite3 INCLUDE sqlite3.h INCLUDE_SUFFIXES include/sqlite3 include/sqlite