libarchive: Set build options the way we need for CMake

This commit is contained in:
Brad King
2024-09-17 10:24:02 -04:00
parent 21affa271e
commit dad12c8010

View File

@@ -260,6 +260,7 @@ if(CMAKE_USE_SYSTEM_LIBARCHIVE)
INTERFACE_INCLUDE_DIRECTORIES "${LibArchive_INCLUDE_DIRS}")
endif ()
else()
set(DONT_FAIL_ON_CRC_ERROR OFF)
set(EXPAT_INCLUDE_DIR ${CMAKE_EXPAT_INCLUDES})
set(EXPAT_LIBRARY ${CMAKE_EXPAT_LIBRARIES})
set(ENABLE_MBEDTLS OFF)
@@ -279,6 +280,7 @@ else()
set(ENABLE_LIBXML2 OFF)
set(ENABLE_EXPAT OFF)
set(ENABLE_PCREPOSIX OFF)
set(ENABLE_PCRE2POSIX OFF)
set(ENABLE_LIBGCC OFF)
set(ENABLE_CNG OFF)
set(ENABLE_TAR OFF)