Update linking for libarchive on ios
This commit is contained in:
5
3rdParty/libarchive/CMakeLists.txt
vendored
5
3rdParty/libarchive/CMakeLists.txt
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user