cmake: require quictls (or fork) when using msh3 on non-Windows

Syncing behavior with `./configure`.

Closes #15003
This commit is contained in:
Viktor Szakats 2024-09-22 15:59:14 +02:00
parent 95a87a0e28
commit 1f1fc27c15
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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})