-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 177296d..9df246b 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -306,6 +306,14 @@ if(WITH_EXAMPLES_HTTP AND NOT WITH_EXAMPLES) | ||
endif() | ||
|
||
find_package(Threads) | ||
+find_package(ZLIB QUIET) | ||
+find_package(zstd QUIET) | ||
+find_package(c-ares QUIET) | ||
+find_package(OpenSSL QUIET) | ||
+find_package(MbedTLS QUIET) | ||
+find_package(Libnghttp3 QUIET) | ||
+find_package(Libngtcp2 QUIET) | ||
+find_package(Libnghttp2 QUIET) | ||
|
||
function(install_windows_deps) | ||
# Bootstrap vcpkg from CMake and auto-install deps in case if we are missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 949c146..1d85bae 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -127,6 +127,20 @@ endif() | ||
add_subdirectory(core) | ||
add_subdirectory(util) | ||
|
||
+if(ENABLE_PULL OR ENABLE_PUSH) | ||
+ find_package(Threads) | ||
+ find_package(ZLIB QUIET) | ||
+ find_package(zstd QUIET) | ||
+ find_package(c-ares QUIET) | ||
+ find_package(Libnghttp3 QUIET) | ||
+ find_package(Libngtcp2 QUIET) | ||
+ find_package(Libnghttp2 QUIET) | ||
+ if(THIRDPARTY_CIVETWEB_WITH_SSL) | ||
+ find_package(OpenSSL QUIET) | ||
+ find_package(MbedTLS QUIET) | ||
+ endif() | ||
+endif() | ||
+ | ||
if(ENABLE_PULL) | ||
add_subdirectory(pull) | ||
endif() | ||
diff --git a/push/CMakeLists.txt b/push/CMakeLists.txt | ||
index f6110b1..380fb0f 100644 | ||
--- a/push/CMakeLists.txt | ||
+++ b/push/CMakeLists.txt | ||
@@ -1,4 +1,9 @@ | ||
|
||
+find_package(zstd QUIET) | ||
+find_package(c-ares QUIET) | ||
+find_package(Libnghttp3 QUIET) | ||
+find_package(Libngtcp2 QUIET) | ||
+find_package(Libnghttp2 QUIET) | ||
find_package(CURL REQUIRED) | ||
|
||
add_library(push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters