diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/libarchive/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/libarchive/vcpkg-cmake-wrapper.cmake.in | 8 | ||||
| -rw-r--r-- | ports/libarchive/vcpkg.json | 2 |
3 files changed, 4 insertions, 8 deletions
diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake index 4e6a5fd85..e441bdea2 100644 --- a/ports/libarchive/portfile.cmake +++ b/ports/libarchive/portfile.cmake @@ -42,6 +42,8 @@ else() endif()
list(APPEND FEATURE_OPTIONS -DENABLE_ZLIB=ON)
+# Needed for configure_file
+set(ENABLE_ZLIB ON)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
diff --git a/ports/libarchive/vcpkg-cmake-wrapper.cmake.in b/ports/libarchive/vcpkg-cmake-wrapper.cmake.in index 2e0ef0f9c..e0712d3e2 100644 --- a/ports/libarchive/vcpkg-cmake-wrapper.cmake.in +++ b/ports/libarchive/vcpkg-cmake-wrapper.cmake.in @@ -89,13 +89,7 @@ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") set_property(TARGET LibArchive::LibArchive APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${interface_lib})
endif()
if(@ENABLE_ZSTD@)
- if(ZSTD_LIBRARY_RELEASE)
- list(APPEND interface_lib \$<\$<NOT:\$<CONFIG:DEBUG>>:${ZSTD_LIBRARY_RELEASE}>)
- endif()
- if(ZSTD_LIBRARY_DEBUG)
- list(APPEND interface_lib \$<\$<CONFIG:DEBUG>:${ZSTD_LIBRARY_DEBUG}>)
- endif()
- set_property(TARGET LibArchive::LibArchive APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${interface_lib})
+ target_link_libraries(LibArchive::LibArchive INTERFACE zstd::libzstd_static)
endif()
if(@ENABLE_OPENSSL@)
target_link_libraries(LibArchive::LibArchive INTERFACE OpenSSL::Crypto)
diff --git a/ports/libarchive/vcpkg.json b/ports/libarchive/vcpkg.json index f70adef08..6258f226d 100644 --- a/ports/libarchive/vcpkg.json +++ b/ports/libarchive/vcpkg.json @@ -1,7 +1,7 @@ { "name": "libarchive", "version-semver": "3.4.3", - "port-version": 4, + "port-version": 5, "description": "Library for reading and writing streaming archives", "homepage": "https://github.com/libarchive/libarchive", "supports": "!uwp", |
