also link CoreFoundation

This commit is contained in:
Viktor Szakats 2025-07-17 10:25:15 +02:00
parent c6612fda3c
commit c95694f8fd
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -99,6 +99,13 @@ if(WOLFSSL_FOUND)
message(FATAL_ERROR "Security framework not found")
endif()
list(APPEND WOLFSSL_LIBRARIES "-framework Security")
find_library(COREFOUNDATION_FRAMEWORK NAMES "CoreFoundation")
mark_as_advanced(COREFOUNDATION_FRAMEWORK)
if(NOT COREFOUNDATION_FRAMEWORK)
message(FATAL_ERROR "CoreFoundation framework not found")
endif()
list(APPEND WOLFSSL_LIBRARIES "-framework CoreFoundation")
elseif(NOT WIN32)
find_library(MATH_LIBRARY NAMES "m")
if(MATH_LIBRARY)