summaryrefslogtreecommitdiffstats
path: root/Modules/CheckFunctionExists.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-13 21:31:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-13 21:31:12 (GMT)
commitfe8428a3eed300833e1e184fefcb227aab99d20f (patch)
tree975d7e570235f727f7a5c77ee38c285882cdcb7b /Modules/CheckFunctionExists.cmake
parent20b7e6b22204b034d204252c0475f292e830ff61 (diff)
downloadCMake-fe8428a3eed300833e1e184fefcb227aab99d20f.zip
CMake-fe8428a3eed300833e1e184fefcb227aab99d20f.tar.gz
CMake-fe8428a3eed300833e1e184fefcb227aab99d20f.tar.bz2
ENH: add status messages
Diffstat (limited to 'Modules/CheckFunctionExists.cmake')
-rw-r--r--Modules/CheckFunctionExists.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CheckFunctionExists.cmake b/Modules/CheckFunctionExists.cmake
index b39e88d..bcf274b 100644
--- a/Modules/CheckFunctionExists.cmake
+++ b/Modules/CheckFunctionExists.cmake
@@ -8,6 +8,7 @@
MACRO(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
SET(MACRO_CHECK_FUNCTION_DEFINITIONS -DCHECK_FUNCTION_EXISTS=${FUNCTION})
+ MESSAGE(STATUS "Looking for ${FUNCTION}")
TRY_COMPILE(${VARIABLE}
${PROJECT_BINARY_DIR}
${CMAKE_ROOT}/Modules/CheckFunctionExists.c
@@ -15,7 +16,9 @@ MACRO(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
OUTPUT_VARIABLE OUTPUT)
IF(${VARIABLE})
SET(${VARIABLE} 1 CACHE INTERNAL "Have function ${FUNCTION}")
+ MESSAGE(STATUS "Found ${FUNCTION}")
ELSE(${VARIABLE})
+ MESSAGE(STATUS "${FUNCTION} not found")
SET(${VARIABLE} "" CACHE INTERNAL "Have function ${FUNCTION}")
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log
"Determining if the function ${FUNCTION} exists failed with the following output:\n"