diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 6 |
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) |