mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 09:17:53 +08:00
31 lines
867 B
Diff
31 lines
867 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 9bf6ec1..112b36b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -70,7 +70,7 @@ find_package(fmt REQUIRED)
|
|
find_package(folly REQUIRED)
|
|
find_package(wangle REQUIRED)
|
|
find_package(mvfst REQUIRED)
|
|
-find_package(Zstd REQUIRED)
|
|
+find_package(zstd CONFIG REQUIRED)
|
|
find_package(ZLIB REQUIRED)
|
|
find_package(OpenSSL REQUIRED)
|
|
find_package(Threads)
|
|
diff --git a/proxygen/lib/CMakeLists.txt b/proxygen/lib/CMakeLists.txt
|
|
index ac5005f..fa403ab 100644
|
|
--- a/proxygen/lib/CMakeLists.txt
|
|
+++ b/proxygen/lib/CMakeLists.txt
|
|
@@ -236,10 +236,10 @@ target_link_libraries(
|
|
Folly::folly
|
|
fizz::fizz
|
|
wangle::wangle
|
|
- zstd
|
|
+ $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>
|
|
Boost::boost
|
|
Boost::iostreams
|
|
- -lz
|
|
+ ZLIB::ZLIB
|
|
${HTTP3_DEPEND_LIBS}
|
|
)
|
|
|