aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2021-05-23 12:57:58 +0100
committerDuncan Bellamy <dunk@denkimushi.com>2021-05-23 13:08:56 +0100
commit53034c0a7a245957d2f9a7663db625e69c6040ba (patch)
treef6cdc02e812e9acab5af9ff88c8ebdc7a7888f29 /src/CMakeLists.txt
parent4fe34b16f2f1d29359d93458ac5f8d9cf6ff38c3 (diff)
downloadrspamd-53034c0a7a245957d2f9a7663db625e69c6040ba.tar.gz
rspamd-53034c0a7a245957d2f9a7663db625e69c6040ba.zip
[Feature] add SYSTEM_ZSTD cmake option
To use the system zstd instead on the bundled version
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 04eae4057..903aa3159 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -194,7 +194,11 @@ TARGET_LINK_LIBRARIES(rspamd-server rspamd-fpconv)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-cdb)
TARGET_LINK_LIBRARIES(rspamd-server rspamd-lpeg)
TARGET_LINK_LIBRARIES(rspamd-server lcbtrie)
-TARGET_LINK_LIBRARIES(rspamd-server rspamd-zstd)
+IF(SYSTEM_ZSTD MATCHES "OFF")
+ TARGET_LINK_LIBRARIES(rspamd-server rspamd-zstd)
+ELSE()
+ TARGET_LINK_LIBRARIES(rspamd-server zstd)
+ENDIF()
TARGET_LINK_LIBRARIES(rspamd-server rspamd-fastutf8)
TARGET_LINK_LIBRARIES(rspamd-server fmt)