diff --git a/CMakeLists.txt b/CMakeLists.txt index 45c95f93e8..3af7844444 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1020,7 +1020,7 @@ if(USE_ECH) endif() if(HAVE_BORINGSSL OR HAVE_AWSLC) curl_openssl_check_symbol_exists("SSL_set1_ech_config_list" "openssl/ssl.h" HAVE_SSL_SET1_ECH_CONFIG_LIST) - elseif(HAVE_OPENSSL) + elseif(USE_OPENSSL) curl_openssl_check_symbol_exists("SSL_set1_ech_config_list" "openssl/ech.h" HAVE_SSL_SET1_ECH_CONFIG_LIST) endif() if(HAVE_WOLFSSL_CTX_GENERATEECHCONFIG OR