summaryrefslogtreecommitdiff
path: root/libarchive/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2018-10-06 21:43:30 +0200
committerMartin Matuska <martin@matuska.org>2018-10-06 22:05:07 +0200
commitc5013112229053d438cfd722497220742a146db6 (patch)
treed9f47f0a6d8dffb3e24b8811180b98dcaa70dbca /libarchive/CMakeLists.txt
parentcd43985f51fef3b2d88a93103f695ac30377a0e5 (diff)
downloadlibarchive-c5013112229053d438cfd722497220742a146db6.tar.gz
archive_read_support_format_rar5: enable blake2 support via libb2
Diffstat (limited to 'libarchive/CMakeLists.txt')
-rw-r--r--libarchive/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/libarchive/CMakeLists.txt b/libarchive/CMakeLists.txt
index 972403b4..79719773 100644
--- a/libarchive/CMakeLists.txt
+++ b/libarchive/CMakeLists.txt
@@ -53,8 +53,6 @@ SET(libarchive_SOURCES
archive_ppmd_private.h
archive_ppmd7.c
archive_ppmd7_private.h
- archive_blake2sp_ref.c
- archive_blake2s_ref.c
archive_private.h
archive_random.c
archive_random_private.h
@@ -218,6 +216,11 @@ IF(WIN32 AND NOT CYGWIN)
LIST(APPEND libarchive_SOURCES filter_fork_windows.c)
ENDIF(WIN32 AND NOT CYGWIN)
+IF(ARCHIVE_BLAKE2)
+ LIST(APPEND libarchive_SOURCES archive_blake2sp_ref.c)
+ LIST(APPEND libarchive_SOURCES archive_blake2s_ref.c)
+ENDIF(ARCHIVE_BLAKE2)
+
IF(ARCHIVE_ACL_DARWIN)
LIST(APPEND libarchive_SOURCES archive_disk_acl_darwin.c)
ELSEIF(ARCHIVE_ACL_FREEBSD)