From: Viktor Szakats Date: Mon, 24 Jul 2023 12:42:56 +0000 (+0000) Subject: cmake: update ngtcp2 detection X-Git-Tag: curl-8_2_1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a15ef19a8ca2ed1e3d652459a082dd70c2c351e0;p=thirdparty%2Fcurl.git cmake: update ngtcp2 detection Replace `OpenSSL` with `quictls` to follow the same change in the v0.17.0 ngtcp2 release. Follow-up to e0093b4b732f6495b0fb1cd6747cbfedcdcf63ed Closes #11508 --- diff --git a/CMake/FindNGTCP2.cmake b/CMake/FindNGTCP2.cmake index f4e3876083..ae92e417a5 100644 --- a/CMake/FindNGTCP2.cmake +++ b/CMake/FindNGTCP2.cmake @@ -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() diff --git a/CMakeLists.txt b/CMakeLists.txt index babc500867..7a4c36fac9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)