From: Viktor Szakats Date: Sun, 22 Sep 2024 13:59:14 +0000 (+0200) Subject: cmake: require quictls (or fork) when using msh3 on non-Windows X-Git-Tag: curl-8_11_0~363 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f1fc27c1580c8b9cd73ac018359385c4eb8d688;p=thirdparty%2Fcurl.git cmake: require quictls (or fork) when using msh3 on non-Windows Syncing behavior with `./configure`. Closes #15003 --- 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})