mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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.
27 lines
725 B
CMake
27 lines
725 B
CMake
# Find CoreFoundation.framework
|
|
# This will define :
|
|
#
|
|
# COREFOUNDATION_FOUND
|
|
# COREFOUNDATION_LIBRARIES
|
|
# COREFOUNDATION_LDFLAGS
|
|
#
|
|
|
|
FIND_PATH(COREFOUNDATION_INCLUDE_DIR NAMES CoreFoundation.h)
|
|
FIND_LIBRARY(COREFOUNDATION_LIBRARIES NAMES CoreFoundation)
|
|
IF (COREFOUNDATION_INCLUDE_DIR AND COREFOUNDATION_LIBRARIES)
|
|
IF (NOT CoreFoundation_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found CoreFoundation ${COREFOUNDATION_LIBRARIES}")
|
|
ENDIF()
|
|
SET(COREFOUNDATION_FOUND TRUE)
|
|
SET(COREFOUNDATION_LDFLAGS "-framework CoreFoundation")
|
|
ENDIF ()
|
|
|
|
IF (CoreFoundation_FIND_REQUIRED AND NOT COREFOUNDATION_FOUND)
|
|
MESSAGE(FATAL_ERROR "CoreFoundation not found")
|
|
ENDIF()
|
|
|
|
MARK_AS_ADVANCED(
|
|
COREFOUNDATION_INCLUDE_DIR
|
|
COREFOUNDATION_LIBRARIES
|
|
)
|