]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix variable name for Apple Security framework
authorViktor Szakats <commit@vsz.me>
Mon, 19 Jan 2026 06:34:33 +0000 (07:34 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 19 Jan 2026 06:48:15 +0000 (07:48 +0100)
Follow-up to eefd03c572996e5de4dec4fe295ad6f103e0eefc #18703

Closes #20349

CMakeLists.txt

index e21f1384f2c737aed96234fc5af0249659990e79..2c5ecccb97de27db464c55bc8e1e9749858aa391 100644 (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")