summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-02-28 10:00:12 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-02-28 10:00:12 +0000
commit8e8a09ffbfa9ac60fb59d045f0fa4c4234119d6f (patch)
tree2b2ae0025e53d0497ae4d3f884ff2bba57eefaa8 /CMakeLists.txt
parent642ca8c3a410d0fcd53d756534c22ea4c3b9013e (diff)
downloadrspamd-8e8a09ffbfa9ac60fb59d045f0fa4c4234119d6f.tar.gz
rspamd-8e8a09ffbfa9ac60fb59d045f0fa4c4234119d6f.zip
[Project] Use libarchive for troublesome archives
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b46933f08..752f4b2e3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,7 @@ ENDIF ()
FIND_PACKAGE(PkgConfig REQUIRED)
FIND_PACKAGE(Perl REQUIRED)
+
option(SANITIZE "Enable sanitizer: address, memory, undefined, leak (comma separated list)" "")
INCLUDE(Toolset)
INCLUDE(Sanitizer)
@@ -240,6 +241,8 @@ ProcessPackage(LIBZ LIBRARY z INCLUDE zlib.h INCLUDE_SUFFIXES include/zlib
ProcessPackage(SODIUM LIBRARY sodium INCLUDE sodium.h
INCLUDE_SUFFIXES include/libsodium include/sodium
ROOT ${LIBSODIUM_ROOT_DIR} MODULES libsodium>=1.0.0)
+ProcessPackage(LIBARCHIVE LIBRARY archive INCLUDE archive.h
+ ROOT ${LIBARCHIVE_ROOT_DIR} MODULES libarchive>=3.0.0)
if (ENABLE_FASTTEXT MATCHES "ON")
ProcessPackage(FASTTEXT LIBRARY fasttext INCLUDE fasttext/fasttext.h