mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 21:47:54 +08:00
42cc786992
* 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
19 lines
619 B
Diff
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)
|