diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-13 21:31:12 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-13 21:31:12 (GMT) |
commit | fe8428a3eed300833e1e184fefcb227aab99d20f (patch) | |
tree | 975d7e570235f727f7a5c77ee38c285882cdcb7b /Modules/CheckLibraryExists.cmake | |
parent | 20b7e6b22204b034d204252c0475f292e830ff61 (diff) | |
download | CMake-fe8428a3eed300833e1e184fefcb227aab99d20f.zip CMake-fe8428a3eed300833e1e184fefcb227aab99d20f.tar.gz CMake-fe8428a3eed300833e1e184fefcb227aab99d20f.tar.bz2 |
ENH: add status messages
Diffstat (limited to 'Modules/CheckLibraryExists.cmake')
-rw-r--r-- | Modules/CheckLibraryExists.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CheckLibraryExists.cmake b/Modules/CheckLibraryExists.cmake index 685004c..af8a014 100644 --- a/Modules/CheckLibraryExists.cmake +++ b/Modules/CheckLibraryExists.cmake @@ -8,6 +8,7 @@ MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE) SET(MACRO_CHECK_LIBRARY_EXISTS_DEFINITION -DCHECK_FUNCTION_EXISTS=${FUNCTION}) + MESSAGE(STATUS "Looking for ${FUNCTION} in ${LIBRARY}") TRY_COMPILE(${VARIABLE} ${PROJECT_BINARY_DIR} ${CMAKE_ROOT}/Modules/CheckFunctionExists.c @@ -18,8 +19,10 @@ MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE) OUTPUT_VARIABLE OUTPUT) IF(${VARIABLE}) + MESSAGE(STATUS "Found ${FUNCTION} in ${LIBRARY}") SET(${VARIABLE} 1 CACHE INTERNAL "Have library ${LIBRARY}") ELSE(${VARIABLE}) + MESSAGE(STATUS "${FUNCTION} in ${LIBRARY} not found") SET(${VARIABLE} "" CACHE INTERNAL "Have library ${LIBRARY}") WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log "Determining if the function ${FUNCTION} exists in the ${LIBRARY} " |