mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 03:27:54 +08:00
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)
|