aboutsummaryrefslogtreecommitdiff
path: root/ports/libzip/fix-dependency.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-04-30 06:54:14 +0800
committerGitHub <noreply@github.com>2021-04-29 15:54:14 -0700
commit4d57adb52eab756b08ab4c6cb622b0a764bcf64b (patch)
tree6216b4351eac370d1831e8d42343f3ccace9ad80 /ports/libzip/fix-dependency.patch
parent76a5e426abc84d65818f13b643562325a7a20ab2 (diff)
downloadvcpkg-4d57adb52eab756b08ab4c6cb622b0a764bcf64b.tar.gz
vcpkg-4d57adb52eab756b08ab4c6cb622b0a764bcf64b.zip
[libzip] fix dependency in libzip-config.cmake.in (#17282)
* [libzip] fix dependency in libzip-config.cmake.in * Update version files
Diffstat (limited to 'ports/libzip/fix-dependency.patch')
-rw-r--r--ports/libzip/fix-dependency.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/libzip/fix-dependency.patch b/ports/libzip/fix-dependency.patch
new file mode 100644
index 000000000..e04d27138
--- /dev/null
+++ b/ports/libzip/fix-dependency.patch
@@ -0,0 +1,24 @@
+diff --git a/libzip-config.cmake.in b/libzip-config.cmake.in
+index 5b9aa55..0723f3c 100644
+--- a/libzip-config.cmake.in
++++ b/libzip-config.cmake.in
+@@ -1,8 +1,17 @@
+ @PACKAGE_INIT@
+
+ # only needed for static library, and doesn't work as-is
+-#include(CMakeFindDependencyMacro)
+-#find_dependency(ZLIB::ZLIB)
++include(CMakeFindDependencyMacro)
++if(@ENABLE_BZIP2@)
++ find_dependency(BZip2)
++endif()
++if(@ENABLE_LZMA@)
++ find_dependency(LibLZMA)
++endif()
++if(@ENABLE_OPENSSL@)
++ find_dependency(OpenSSL)
++endif()
++find_dependency(ZLIB)
+ # how to handle the optional dependencies?
+ # Provide all our library targets to users.
+ include("${CMAKE_CURRENT_LIST_DIR}/libzip-targets.cmake")