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