mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 16:17:51 +08:00
8807db6a7f
* [proxygen]: fix dependency * [proxygen]: fix zstd zlib dependency
31 lines
812 B
Diff
31 lines
812 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ea22eab..6bf0f17 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -74,7 +74,7 @@ if (BUILD_QUIC)
|
|
else()
|
|
find_package(Fizz REQUIRED)
|
|
endif()
|
|
-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 b3fa2d1..5c50ee1 100644
|
|
--- a/proxygen/lib/CMakeLists.txt
|
|
+++ b/proxygen/lib/CMakeLists.txt
|
|
@@ -235,10 +235,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}
|
|
)
|
|
|