diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-27 12:13:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-27 12:18:41 +0000 |
commit | 49647df07c2dad4ae1560f9329cbbb0684c51127 (patch) | |
tree | 279da3790e519a8b248fb3121e0454327c07cc27 /CMakeLists.txt | |
parent | 29d5197458ea29a5bc75e171f007c4ab889f0299 (diff) | |
download | rspamd-49647df07c2dad4ae1560f9329cbbb0684c51127.tar.gz rspamd-49647df07c2dad4ae1560f9329cbbb0684c51127.zip |
[Minor] Save resolver in config structure and allow to get it from Lua
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 887bc93f5..af5ed5d98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -662,14 +662,12 @@ IF(ENABLE_JEMALLOC MATCHES "ON") ROOT ${JEMALLOC_ROOT_DIR} MODULES jemalloc) SET(WITH_JEMALLOC "1") ENDIF() +ProcessPackage(GTHREAD2 LIBRARY ghtread-2.0 INCLUDE glib.h + INCLUDE_SUFFIXES include/glib include/glib-2.0 + ROOT ${GLIB_ROOT_DIR} MODULES gthread-2.0>=2.28) ProcessPackage(GLIB2 LIBRARY glib-2.0 INCLUDE glib.h INCLUDE_SUFFIXES include/glib include/glib-2.0 ROOT ${GLIB_ROOT_DIR} MODULES glib-2.0>=2.28) -IF(GLIB_ROOT_DIR) - LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lpthread") - LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lffi") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") -ENDIF() IF(ENABLE_PCRE2 MATCHES "ON") ProcessPackage(PCRE LIBRARY pcre2 INCLUDE pcre2.h INCLUDE_SUFFIXES include/pcre2 |