From b0a23f999ebcfcfe0ce36e55b65deb0f1744a54b Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Fri, 16 Aug 2024 12:16:51 +0200 Subject: [PATCH] Fix iOS build --- 3rdParty/libarchive/ext/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3rdParty/libarchive/ext/CMakeLists.txt b/3rdParty/libarchive/ext/CMakeLists.txt index 768ee55..dfe2587 100644 --- a/3rdParty/libarchive/ext/CMakeLists.txt +++ b/3rdParty/libarchive/ext/CMakeLists.txt @@ -68,6 +68,10 @@ ExternalProject_Add(lz4 -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/INSTALL ) +if (${PLATFORM} STREQUAL "OS64" OR ${PLATFORM} STREQUAL "OS64COMBINED") + set(EXTRA_ARGS -DHAVE__FSEEKI64:BOOL=OFF -DHAVE_FUTIMESAT:BOOL=OFF) +endif() + ExternalProject_Add( libarchive DEPENDS zlib zstd lz4 @@ -93,7 +97,9 @@ ExternalProject_Add( -DENABLE_LIBB2:BOOL=OFF -DENABLE_LIBXML2:BOOL=OFF -DENABLE_UNZIP:BOOL=OFF + -DENABLE_EXPAT:BOOL=OFF -DZLIB_USE_STATIC_LIBS:BOOL=ON -DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR}/INSTALL -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/INSTALL + ${EXTRA_ARGS} ) \ No newline at end of file