vcpkg/ports/libzippp/fix-find-lzma.patch
General Jack O'Neill 31b95c6b4f
[libzippp] fix find lzma (#15486)
* Adds patch to fix find lzma after changes to use upstream CMakeLists.txt
* Reference Issue: [libzippp] x64-windows build failure after liblzma use upstream CMakeLists.txt + Add pkgconfig. (#14615) #14679 https://github.com/microsoft/vcpkg/issues/14679
* Reference Commit: PR [liblzma] use upstream CMakeLists.txt + Add pkgconfig. (#14615) eb895b95aa
2021-01-08 12:03:08 -08:00

14 lines
613 B
Diff

diff --git a/cmake/FindLIBZIP.cmake b/cmake/FindLIBZIP.cmake
index c51c09a..a32bb13 100644
--- a/cmake/FindLIBZIP.cmake
+++ b/cmake/FindLIBZIP.cmake
@@ -50,7 +50,7 @@ if (LIBZIP_FOUND)
set_property(TARGET libzip::zip APPEND PROPERTY INTERFACE_LINK_LIBRARIES Nettle::Nettle)
endif()
if(_have_extra_libs MATCHES "-llzma")
- find_package(LibLZMA::LibLZMA REQUIRED)
+ find_package(LibLZMA REQUIRED)
set_property(TARGET libzip::zip APPEND PROPERTY INTERFACE_LINK_LIBRARIES LibLZMA::LibLZMA)
endif()
if(_have_extra_libs MATCHES "-lz")