diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-25 13:39:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-25 13:39:35 +0100 |
commit | f0448d158b9858294a5cd54d3b2fab15193f1485 (patch) | |
tree | e40f8754c580483b06f69a768982bc7cf23b9af3 /CMakeLists.txt | |
parent | 62e266e47646a68bd9de0d3d49490dcc606799d7 (diff) | |
download | rspamd-f0448d158b9858294a5cd54d3b2fab15193f1485.tar.gz rspamd-f0448d158b9858294a5cd54d3b2fab15193f1485.zip |
[Fix] Avoid linking with actrie if hyperscan is enabled
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 84a3f5005..4d1f8cf94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1109,6 +1109,7 @@ IF(GLIB_COMPAT) LIST(APPEND RSPAMD_REQUIRED_LIBRARIES glibadditions) ENDIF(GLIB_COMPAT) + ADD_SUBDIRECTORY(contrib/xxhash) ADD_SUBDIRECTORY(contrib/cdb) ADD_SUBDIRECTORY(contrib/http-parser) @@ -1124,6 +1125,16 @@ ADD_SUBDIRECTORY(contrib/aho-corasick) ADD_SUBDIRECTORY(contrib/lpeg) ADD_SUBDIRECTORY(contrib/linenoise) +IF (ENABLE_SNOWBALL MATCHES "ON") + LIST(APPEND RSPAMD_REQUIRED_LIBRARIES stemmer) +ENDIF() +IF(ENABLE_HIREDIS MATCHES "ON") + LIST(APPEND RSPAMD_REQUIRED_LIBRARIES rspamd-hiredis) +ENDIF() +IF(ENABLE_HYPERSCAN MATCHES "OFF") + LIST(APPEND RSPAMD_REQUIRED_LIBRARIES rspamd-actrie) +ENDIF() + IF(ENABLE_CLANG_PLUGIN MATCHES "ON") ADD_SUBDIRECTORY(clang-plugin) ENDIF() |