aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-26 12:44:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-26 12:44:58 +0000
commitb6ceb8518d29def9ec450ed0f4ae96959d4851a8 (patch)
tree827631305fb1482a63241c52a8700a467f5587c3 /CMakeLists.txt
parent29ec64ccf5ea7c35b15640279b8d9ee6ce207102 (diff)
downloadrspamd-b6ceb8518d29def9ec450ed0f4ae96959d4851a8.tar.gz
rspamd-b6ceb8518d29def9ec450ed0f4ae96959d4851a8.zip
[Minor] Another fix for static build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28019d77d..c9d1f7b6d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -657,6 +657,10 @@ ProcessPackage(GLIB2 LIBRARY glib-2.0 INCLUDE glib.h
ProcessPackage(GMODULE2 LIBRARY gmodule-2.0 INCLUDE glib.h
INCLUDE_SUFFIXES include/glib include/glib-2.0
ROOT ${GLIB_ROOT_DIR} MODULES gmodule-no-export-2.0>=2.28 gmodule-2.0>=2.28)
+IF(GLIB_ROOT_DIR)
+ LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lpthread")
+ LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lffi")
+ENDIF()
IF(ENABLE_PCRE2 MATCHES "ON")
ProcessPackage(PCRE LIBRARY pcre2 INCLUDE pcre2.h INCLUDE_SUFFIXES include/pcre2