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()