diff options
-rw-r--r-- | Modules/CheckFunctionExists.cmake | 3 | ||||
-rw-r--r-- | Modules/CheckIncludeFile.cmake | 3 | ||||
-rw-r--r-- | Modules/CheckLibraryExists.cmake | 3 | ||||
-rw-r--r-- | Modules/CheckSizeOf.cmake | 3 |
4 files changed, 11 insertions, 1 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" diff --git a/Modules/CheckIncludeFile.cmake b/Modules/CheckIncludeFile.cmake index efefa15..16fdb86 100644 --- a/Modules/CheckIncludeFile.cmake +++ b/Modules/CheckIncludeFile.cmake @@ -10,13 +10,16 @@ MACRO(CHECK_INCLUDE_FILE INCLUDE VARIABLE) SET(CHECK_INCLUDE_FILE_VAR ${INCLUDE}) CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CheckIncludeFile.c.in ${PROJECT_BINARY_DIR}/CMakeTmp/CheckIncludeFile.c IMMEDIATE) + MESSAGE(STATUS "Looking for ${INCLUDE}") TRY_COMPILE(${VARIABLE} ${PROJECT_BINARY_DIR} ${PROJECT_BINARY_DIR}/CMakeTmp/CheckIncludeFile.c OUTPUT_VARIABLE OUTPUT) IF(${VARIABLE}) + MESSAGE(STATUS "Found ${INCLUDE}") SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}") ELSE(${VARIABLE}) + MESSAGE(STATUS "${INCLUDE} not found.") SET(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}") WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log "Determining if the include file ${INCLUDE} " 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} " diff --git a/Modules/CheckSizeOf.cmake b/Modules/CheckSizeOf.cmake index 57b7f21..ddeb350 100644 --- a/Modules/CheckSizeOf.cmake +++ b/Modules/CheckSizeOf.cmake @@ -14,13 +14,14 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE) IF(HAVE_STDINT_H) SET(MACRO_CHECK_TYPE_SIZE_FLAGS "${MACRO_CHECK_TYPE_SIZE_FLAGS} -DHAVE_STDINT_H") ENDIF(HAVE_STDINT_H) - + MESSAGE(STATUS "Check size of ${TYPE}") TRY_RUN(${VARIABLE} HAVE_${VARIABLE} ${PROJECT_BINARY_DIR} ${CMAKE_ROOT}/Modules/CheckSizeOf.c CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_TYPE_SIZE_FLAGS} OUTPUT_VARIABLE OUTPUT) IF(NOT HAVE_${VARIABLE}) + MESSAGE(STATUS "Error in Check size of ${TYPE}") WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log "Determining size of ${TYPE} failed with the following output:\n${OUTPUT}\n" APPEND) |