fix? build-windows
This commit is contained in:
6 files changed
+58
-30
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user