diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 22:37:36 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-14 07:25:41 -0500 |
| commit | c3fec45645e6939b3604d2d233be6f97ff629f87 (patch) | |
| tree | 8e600ad28fd9f41c67a170ce4ca01fa0ce62c2c8 /cmake/FindSecurity.cmake | |
| parent | b608af6c3a2502ae61b94416a482c2e0672286a4 (diff) | |
| download | libgit2-c3fec45645e6939b3604d2d233be6f97ff629f87.tar.gz | |
cmake: reformat modules
Apply the standard project cmake formatting to the modules.
Diffstat (limited to 'cmake/FindSecurity.cmake')
| -rw-r--r-- | cmake/FindSecurity.cmake | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cmake/FindSecurity.cmake b/cmake/FindSecurity.cmake index a538c02c1..14a2e2dd7 100644 --- a/cmake/FindSecurity.cmake +++ b/cmake/FindSecurity.cmake @@ -7,22 +7,22 @@ # 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 () +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() +if(Security_FIND_REQUIRED AND NOT SECURITY_FOUND) + message(FATAL_ERROR "Security not found") +endif() -MARK_AS_ADVANCED( +mark_as_advanced( SECURITY_INCLUDE_DIR SECURITY_LIBRARIES ) |
