mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:31:42 +03:00
cmake: fix variable name for Apple Security framework
Follow-up to eefd03c572 #18703
Closes #20349
This commit is contained in:
parent
ec1dbaabe4
commit
0e8683ee2a
1 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue