From 007eefc6881ff9ed48f7d54e761bf968dfb9a050 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Wed, 4 Dec 2024 21:33:23 +0100 Subject: [PATCH] Update linking for libarchive on ios --- 3rdParty/libarchive/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/3rdParty/libarchive/CMakeLists.txt b/3rdParty/libarchive/CMakeLists.txt index 9f1958b..c507fe9 100644 --- a/3rdParty/libarchive/CMakeLists.txt +++ b/3rdParty/libarchive/CMakeLists.txt @@ -22,9 +22,10 @@ endif () function(LinkLibArchive TARGET) list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/deps/INSTALL) find_package(LibArchive REQUIRED) - if (NOT IOS) - set(ZLIB_USE_STATIC_LIBS ON) + if (IOS) + set(LibArchive_LIBRARIES ${CMAKE_BINARY_DIR}/deps/INSTALL/lib/libarchive.a) endif() + set(ZLIB_USE_STATIC_LIBS ON) find_package(ZLIB REQUIRED) find_package(LZ4 QUIET) find_package(zstd QUIET)