attempt to fix libarchive link: enable xmllite on windows static build as it's used by libarchive

This commit is contained in:
Klaim (Joël Lamotte) 2025-07-24 16:07:28 +02:00
parent 35ad5fd8fa
commit 765224f57d
1 changed files with 1 additions and 0 deletions

View File

@ -562,6 +562,7 @@ macro(libmamba_create_target target_name linkage output_name)
elseif(WIN32)
set(CMAKE_PREFIX_PATH "$ENV{VCPKG_ROOT}/installed/x64-windows-static-md/")
set(ENABLE_WIN32_XMLLITE ON) # libarchive uses xmllite on windows if using libxml and not expat
# For Windows we have a vcpkg based build system right now.
find_package(LibArchive MODULE REQUIRED)