diff --git a/CMakeLists.txt b/CMakeLists.txt index e21f1384f2..2c5ecccb97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")