vcpkg/ports/minizip-ng/fix_find_zstd.patch

19 lines
619 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f6c6bc..1856944 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -334,12 +334,8 @@ endif()
if(MZ_ZSTD)
# Check if zstd is present
if(NOT MZ_FORCE_FETCH_LIBS)
- find_package(PkgConfig QUIET)
- if(PKGCONFIG_FOUND)
- pkg_check_modules(ZSTD libzstd)
- endif()
if(NOT ZSTD_FOUND)
- find_package(ZSTD QUIET)
+ find_package(ZSTD NAMES zstd REQUIRED)
if(ZSTD_FOUND)
if(TARGET zstd::libzstd_static)
list(APPEND ZSTD_LIBRARIES zstd::libzstd_static)