cmake: fix variable name for Apple Security framework

Follow-up to eefd03c572 #18703

Closes #20349
This commit is contained in:
Viktor Szakats 2026-01-19 07:34:33 +01:00
parent ec1dbaabe4
commit 0e8683ee2a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -724,9 +724,9 @@ if(APPLE)
if(NOT CURL_USE_OPENSSL AND NOT CURL_USE_GNUTLS)
message(FATAL_ERROR "Apple SecTrust is only supported with Openssl/GnuTLS")
endif()
find_library(COREFOUNDATION_FRAMEWORK NAMES "Security")
mark_as_advanced(COREFOUNDATION_FRAMEWORK)
if(NOT COREFOUNDATION_FRAMEWORK)
find_library(SECURITY_FRAMEWORK NAMES "Security")
mark_as_advanced(SECURITY_FRAMEWORK)
if(NOT SECURITY_FRAMEWORK)
message(FATAL_ERROR "Security framework not found")
endif()
list(APPEND CURL_LIBS "-framework Security")