windows build fix
This commit is contained in:
2 files changed
+4
-3
No files matched your search
+3
-2
@@ -25,13 +25,14 @@ find_package(Qt6 OPTIONAL_COMPONENTS DBus)
|
||||
|
||||
# Third-party libraries
|
||||
find_package(PkgConfig REQUIRED)
|
||||
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.
|
||||
# bcrypt.lib and iconv are not listed in the .pc file, so inject them here.
|
||||
if(WIN32)
|
||||
set_property(TARGET PkgConfig::LIBARCHIVE APPEND PROPERTY
|
||||
INTERFACE_LINK_LIBRARIES bcrypt)
|
||||
INTERFACE_LINK_LIBRARIES bcrypt Iconv::Iconv)
|
||||
endif()
|
||||
|
||||
# Source files
|
||||
|
||||
Reference in new issue
Block a user