Sha256: f2cf50ef8d1a95e5a8777a26b09edf857ff5e685aa5bc221d8f04bca8311a173

Contents?: true

Size: 763 Bytes

Versions: 13

Compression:

Stored size: 763 Bytes

Contents

# Find Security.framework
# This will define :
#
# SECURITY_FOUND
# SECURITY_LIBRARIES
# SECURITY_LDFLAGS
# SECURITY_HAS_SSLCREATECONTEXT
#

FIND_PATH(SECURITY_INCLUDE_DIR NAMES Security/Security.h)
FIND_LIBRARY(SECURITY_LIBRARIES NAMES Security)
IF (SECURITY_INCLUDE_DIR AND SECURITY_LIBRARIES)
	IF (NOT Security_FIND_QUIETLY)
		MESSAGE(STATUS "Found Security ${SECURITY_LIBRARIES}")
	ENDIF()
	SET(SECURITY_FOUND TRUE)
	SET(SECURITY_LDFLAGS "-framework Security")
	CHECK_LIBRARY_EXISTS("${SECURITY_LIBRARIES}" SSLCreateContext "Security/SecureTransport.h" SECURITY_HAS_SSLCREATECONTEXT)
ENDIF ()

IF (Security_FIND_REQUIRED AND NOT SECURITY_FOUND)
	MESSAGE(FATAL_ERROR "Security not found")
ENDIF()

MARK_AS_ADVANCED(
	SECURITY_INCLUDE_DIR
	SECURITY_LIBRARIES
)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rugged-1.3.2.3 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.3.2.1 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.3.2 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.3.1 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.3.0 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.2.0 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.1.1 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.1.0 vendor/libgit2/cmake/FindSecurity.cmake
rugged-1.0.1 vendor/libgit2/cmake/Modules/FindSecurity.cmake
rugged-1.0.0 vendor/libgit2/cmake/Modules/FindSecurity.cmake
rugged-0.99.0 vendor/libgit2/cmake/Modules/FindSecurity.cmake
rugged-0.28.4 vendor/libgit2/cmake/Modules/FindSecurity.cmake
rugged-0.27.10 vendor/libgit2/cmake/Modules/FindSecurity.cmake