Recover Windows Vista compatibility (fix #5211)

This commit is contained in:
Martín Capello 2025-06-24 10:10:43 -03:00
parent ee69a2f2f6
commit 322040c4fb
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ set(ENABLE_TAR OFF CACHE BOOL "Enable tar building")
set(ENABLE_CPIO OFF CACHE BOOL "Enable cpio building")
set(ENABLE_LIBB2 OFF CACHE BOOL "Enable the use of the system LIBB2 library if found")
set(ENABLE_ICONV OFF CACHE BOOL "Enable iconv support")
set(WINDOWS_VERSION "WS08" CACHE STRING "Set Windows Vista as the target version for compiling libarchive (Windows only)" FORCE)
add_subdirectory(libarchive)
target_include_directories(archive_static INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)