Browse Source

libarchive: Set build options the way we need for CMake

Brad King 1 year ago
parent
commit
dad12c8010
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/Modules/CMakeBuildUtilities.cmake

+ 2 - 0
Source/Modules/CMakeBuildUtilities.cmake

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