mirror of
https://github.com/curl/curl
synced 2026-08-25 12:32:35 -04:00
cmake: optimize OpenSSL fork detection
Stop detecting further forks if one has been positively identified. Closes #22664
This commit is contained in:
parent
81dcba3549
commit
fb22f58cc3
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue