1 # Find Security.framework
7 # SECURITY_HAS_SSLCREATECONTEXT
10 find_path(SECURITY_INCLUDE_DIR NAMES Security/Security.h)
11 find_library(SECURITY_LIBRARIES NAMES Security)
12 if(SECURITY_INCLUDE_DIR AND SECURITY_LIBRARIES)
13 if(NOT Security_FIND_QUIETLY)
14 message(STATUS "Found Security ${SECURITY_LIBRARIES}")
16 set(SECURITY_FOUND TRUE)
17 set(SECURITY_LDFLAGS "-framework Security")
18 check_library_exists("${SECURITY_LIBRARIES}" SSLCreateContext "Security/SecureTransport.h" SECURITY_HAS_SSLCREATECONTEXT)
21 if(Security_FIND_REQUIRED AND NOT SECURITY_FOUND)
22 message(FATAL_ERROR "Security not found")