summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindSecurity.cmake
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-08-02 14:00:21 +0200
committerPatrick Steinhardt <ps@pks.im>2019-09-13 10:03:38 +0200
commit212b6f6559614a4e0deb84a21769d63b92d437a0 (patch)
tree1ce92ad606421b97a18dcbb565517c3f9e5f0311 /cmake/Modules/FindSecurity.cmake
parente77fdf87166e382e8adb7c6f69e9c5e283ed533f (diff)
downloadlibgit2-212b6f6559614a4e0deb84a21769d63b92d437a0.tar.gz
cmake: fix various misuses of MESSAGE()
The MESSAGE() function expects as first argument the message type, e.g. STATUS or FATAL_ERROR. In some places, we were misusing this to either not provide any type, which would then erroneously print the message to standard error, or to use FATAL instead of FATAL_ERROR. Fix all of these instances. Also, remove some MESSAGE invocations that are obvious leftovers from debugging the build system.
Diffstat (limited to 'cmake/Modules/FindSecurity.cmake')
-rw-r--r--cmake/Modules/FindSecurity.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/FindSecurity.cmake b/cmake/Modules/FindSecurity.cmake
index 487f7e500..a538c02c1 100644
--- a/cmake/Modules/FindSecurity.cmake
+++ b/cmake/Modules/FindSecurity.cmake
@@ -11,7 +11,7 @@ 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("-- Found Security ${SECURITY_LIBRARIES}")
+ MESSAGE(STATUS "Found Security ${SECURITY_LIBRARIES}")
ENDIF()
SET(SECURITY_FOUND TRUE)
SET(SECURITY_LDFLAGS "-framework Security")
@@ -19,7 +19,7 @@ IF (SECURITY_INCLUDE_DIR AND SECURITY_LIBRARIES)
ENDIF ()
IF (Security_FIND_REQUIRED AND NOT SECURITY_FOUND)
- MESSAGE(FATAL "-- Security not found")
+ MESSAGE(FATAL_ERROR "Security not found")
ENDIF()
MARK_AS_ADVANCED(