vcpkg/ports/minizip-ng/fix_find_zstd.patch
jim wang 42cc786992
[opencolorio] Fix minizip-ng related errors (#33335)
* Generate Imath.pc

* update version

* add dependency imath minizip-ng

* updata version

* update version

* Fix minizip-ng related errors

* update version

* delete option

* update version

* Modify the license copy method

* update version

* shrink patch

* update version

* shrink patch

* update version
2023-08-25 12:40:43 -07:00

19 lines
619 B
Diff

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)