Update linking for libarchive on ios

This commit is contained in:
Georg Hagen
2024-12-04 21:33:23 +01:00
parent 1abfb22b08
commit 007eefc688

View File

@@ -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)