Force our libarchive if system is not providing headers

This commit is contained in:
Georg Hagen
2025-11-14 17:18:19 +01:00
parent 357766f615
commit a1955cfb59

View File

@@ -23,6 +23,8 @@ function(LinkLibArchive TARGET)
find_package(LibArchive REQUIRED)
if (IOS)
set(LibArchive_LIBRARIES ${CMAKE_BINARY_DIR}/deps/INSTALL/lib/libarchive.a)
elseif (EXISTS ${CMAKE_BINARY_DIR}/deps/INSTALL/lib/libarchive.a)
set(LibArchive_LIBRARIES ${CMAKE_BINARY_DIR}/deps/INSTALL/lib/libarchive.a)
endif()
set(ZLIB_USE_STATIC_LIBS ON)
find_package(ZLIB REQUIRED)