]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: require quictls (or fork) when using msh3 on non-Windows
authorViktor Szakats <commit@vsz.me>
Sun, 22 Sep 2024 13:59:14 +0000 (15:59 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 22 Sep 2024 16:28:49 +0000 (18:28 +0200)
Syncing behavior with `./configure`.

Closes #15003

CMakeLists.txt

index 9ec7dd433a3e8d06f52dc3536f5e94f906d82e40..a0764b3402d163bb7d96f4722cc3db69e3411dab 100644 (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})