From 1f1fc27c1580c8b9cd73ac018359385c4eb8d688 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 22 Sep 2024 15:59:14 +0200 Subject: [PATCH] cmake: require quictls (or fork) when using msh3 on non-Windows Syncing behavior with `./configure`. Closes #15003 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ec7dd433a..a0764b3402 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -904,6 +904,12 @@ if(USE_MSH3) if(USE_NGTCP2 OR USE_QUICHE) message(FATAL_ERROR "Only one HTTP/3 backend can be selected") endif() + if(NOT WIN32) + if(NOT USE_OPENSSL) + message(FATAL_ERROR "msh3/msquic requires OpenSSL fork with QUIC API") + endif() + openssl_check_quic() + endif() find_package(MSH3 REQUIRED) include_directories(SYSTEM ${MSH3_INCLUDE_DIRS}) list(APPEND CURL_LIBS ${MSH3_LIBRARIES}) -- 2.47.3