diff options
author | Brad King <brad.king@kitware.com> | 2003-10-11 12:12:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-10-11 12:12:21 (GMT) |
commit | c17be8d126ef410217506537147bd9b28e7b3023 (patch) | |
tree | 3bb0ac5fbe8585e644e051ab0d7470ac6eabe1df /Modules/CheckVariableExists.cmake | |
parent | 96e8cd82c7e5232d85cf94e1f1ce04ed48c96801 (diff) | |
download | CMake-c17be8d126ef410217506537147bd9b28e7b3023.zip CMake-c17be8d126ef410217506537147bd9b28e7b3023.tar.gz CMake-c17be8d126ef410217506537147bd9b28e7b3023.tar.bz2 |
BUG: Message describing variable was using result variable.
Diffstat (limited to 'Modules/CheckVariableExists.cmake')
-rw-r--r-- | Modules/CheckVariableExists.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CheckVariableExists.cmake b/Modules/CheckVariableExists.cmake index 165fa7d..93da004 100644 --- a/Modules/CheckVariableExists.cmake +++ b/Modules/CheckVariableExists.cmake @@ -9,7 +9,7 @@ MACRO(CHECK_VARIABLE_EXISTS VAR VARIABLE) IF("${VARIABLE}" MATCHES "^${VARIABLE}$") SET(MACRO_CHECK_VARIABLE_DEFINITIONS "-DCHECK_VARIABLE_EXISTS=${VAR} ${CMAKE_REQUIRED_FLAGS}") - MESSAGE(STATUS "Looking for ${VARIABLE}") + MESSAGE(STATUS "Looking for ${VAR}") IF(CMAKE_REQUIRED_LIBRARIES) SET(CHECK_VARIABLE_EXISTS_ADD_LIBRARIES "-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}") @@ -22,13 +22,13 @@ MACRO(CHECK_VARIABLE_EXISTS VAR VARIABLE) OUTPUT_VARIABLE OUTPUT) IF(${VARIABLE}) SET(${VARIABLE} 1 CACHE INTERNAL "Have variable ${VAR}") - MESSAGE(STATUS "Looking for ${VARIABLE} - found") + MESSAGE(STATUS "Looking for ${VAR} - found") FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeOutput.log "Determining if the variable ${VAR} exists passed with the following output:\n" "${OUTPUT}\n\n") ELSE(${VARIABLE}) SET(${VARIABLE} "" CACHE INTERNAL "Have variable ${VAR}") - MESSAGE(STATUS "Looking for ${VARIABLE} - not found") + MESSAGE(STATUS "Looking for ${VAR} - not found") FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeError.log "Determining if the variable ${VAR} exists failed with the following output:\n" "${OUTPUT}\n\n") |