From fb22f58cc3f33d9bea74c03530d284fa7423aa55 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 22 Jun 2026 13:54:52 +0200 Subject: [PATCH] cmake: optimize OpenSSL fork detection Stop detecting further forks if one has been positively identified. Closes #22664 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be551fd8e7..f92d6f050f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -851,10 +851,10 @@ if(CURL_USE_OPENSSL) if(NOT DEFINED HAVE_AWSLC) check_symbol_exists("OPENSSL_IS_AWSLC" "openssl/base.h" HAVE_AWSLC) endif() - if(NOT DEFINED HAVE_BORINGSSL) + if(NOT DEFINED HAVE_BORINGSSL AND NOT HAVE_AWSLC) check_symbol_exists("OPENSSL_IS_BORINGSSL" "openssl/base.h" HAVE_BORINGSSL) endif() - if(NOT DEFINED HAVE_LIBRESSL) + if(NOT DEFINED HAVE_LIBRESSL AND NOT HAVE_AWSLC AND NOT HAVE_BORINGSSL) check_symbol_exists("LIBRESSL_VERSION_NUMBER" "openssl/opensslv.h" HAVE_LIBRESSL) endif() cmake_pop_check_state()