]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: update ngtcp2 detection
authorViktor Szakats <commit@vsz.me>
Mon, 24 Jul 2023 12:42:56 +0000 (12:42 +0000)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Jul 2023 18:13:53 +0000 (18:13 +0000)
Replace `OpenSSL` with `quictls` to follow the same change
in the v0.17.0 ngtcp2 release.

Follow-up to e0093b4b732f6495b0fb1cd6747cbfedcdcf63ed

Closes #11508

CMake/FindNGTCP2.cmake
CMakeLists.txt

index f4e3876083737ce2306e81fc78d4e64f61c25621..ae92e417a5ca0aa38ab2643423ce1fc3a1724a43 100644 (file)
@@ -71,7 +71,7 @@ endif()
 if(NGTCP2_FIND_COMPONENTS)
   set(NGTCP2_CRYPTO_BACKEND "")
   foreach(component IN LISTS NGTCP2_FIND_COMPONENTS)
-    if(component MATCHES "^(BoringSSL|OpenSSL|wolfSSL|GnuTLS)")
+    if(component MATCHES "^(BoringSSL|quictls|wolfSSL|GnuTLS)")
       if(NGTCP2_CRYPTO_BACKEND)
         message(FATAL_ERROR "NGTCP2: Only one crypto library can be selected")
       endif()
index babc500867bc8f5fa2172c45be0256c45eef082f..7a4c36fac9d27ab69ef099dc83fea2b5bb01e09c 100644 (file)
@@ -604,7 +604,7 @@ if(USE_NGTCP2)
     elseif(HAVE_BORINGSSL)
       find_package(NGTCP2 REQUIRED BoringSSL)
     else()
-      find_package(NGTCP2 REQUIRED OpenSSL)
+      find_package(NGTCP2 REQUIRED quictls)
     endif()
     CheckQuicSupportInOpenSSL()
   elseif(USE_GNUTLS)