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("-- 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 "-- Security not found")