aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-23 11:51:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-23 11:51:53 +0100
commitc5e769ec0ce3d7347276809d79d7dcb81aae8324 (patch)
treeaa3f55253232d2a2de9faa9a8370e1c1b956334a /CMakeLists.txt
parent00f687383ae2ea5f3e39840989541e4704887f01 (diff)
downloadrspamd-c5e769ec0ce3d7347276809d79d7dcb81aae8324.tar.gz
rspamd-c5e769ec0ce3d7347276809d79d7dcb81aae8324.zip
Allow conditional build of snowball.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa66b075a..6c4830408 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,6 +45,7 @@ OPTION(FORCE_GMIME24 "Link with gmime2.4 [default: OFF]"
OPTION(INSTALL_EXAMPLES "Install examples [default: OFF]" OFF)
OPTION(INSTALL_WEBUI "Install web interface [default: ON]" ON)
OPTION(WANT_SYSTEMD_UNITS "Install systemd unit files on Linux [default: OFF]" OFF)
+OPTION(ENABLE_SNOWBALL "Enable snowball stemmer [default: ON]" ON)
# Build optimized code for following CPU (default i386)
#SET(CPU_TUNE "i686")
@@ -1014,7 +1015,10 @@ ADD_SUBDIRECTORY(contrib/xxhash)
ADD_SUBDIRECTORY(contrib/cdb)
ADD_SUBDIRECTORY(contrib/http-parser)
ADD_SUBDIRECTORY(contrib/libottery)
-ADD_SUBDIRECTORY(contrib/snowball)
+IF(ENABLE_SNOWBALL MATCHES "ON")
+ ADD_SUBDIRECTORY(contrib/snowball)
+ SET(WITH_SNOWBALL 1)
+ENDIF()
ADD_SUBDIRECTORY(contrib/blake2)
ADD_SUBDIRECTORY(contrib/libucl)
ADD_SUBDIRECTORY(contrib/librdns)