fix? build-windows

This commit is contained in:
Agel committed 2026-05-24 08:41:21 +02:00
1 parent fd751d6111
commit bb18197228
6 files changed
+58 -30

No files matched your search

+6
View File
@@ -36,6 +36,12 @@ set_target_properties(PkgConfig::UCHARDET PROPERTIES INTERFACE_INCLUDE_DIRECTORI
find_package(Iconv REQUIRED)
pkg_check_modules(MINIZIP REQUIRED IMPORTED_TARGET minizip)
pkg_check_modules(LIBARCHIVE REQUIRED IMPORTED_TARGET libarchive)
# libarchive on Windows is built with CNG enabled (BCryptGenRandom for temp files).
# bcrypt.lib is not listed in the .pc file, so inject it here.
if(WIN32)
set_property(TARGET PkgConfig::LIBARCHIVE APPEND PROPERTY
INTERFACE_LINK_LIBRARIES bcrypt)
endif()
# Source files
set(SOURCES