aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorDDoSolitary <DDoSolitary@gmail.com>2021-04-20 08:14:07 +0800
committerGitHub <noreply@github.com>2021-04-19 17:14:07 -0700
commitcc1aef5a12c0dd0a7b1310a3b7f21cc9debdff99 (patch)
tree2c9e51f5ff53c12da08bfd1bf14431f4d9725de1 /ports
parent1045e88e429a6ed5a1fc8cb6cc0f6c695908344f (diff)
downloadvcpkg-cc1aef5a12c0dd0a7b1310a3b7f21cc9debdff99.tar.gz
vcpkg-cc1aef5a12c0dd0a7b1310a3b7f21cc9debdff99.zip
[libarchive] Fix static linking dependencies (#16082)
Diffstat (limited to 'ports')
-rw-r--r--ports/libarchive/portfile.cmake2
-rw-r--r--ports/libarchive/vcpkg-cmake-wrapper.cmake.in8
-rw-r--r--ports/libarchive/vcpkg.json2
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",