ENH: fix error

This commit is contained in:
Bill Hoffman 2006-08-03 14:38:46 -04:00
parent 947edfcdf5
commit 281c71e9d8
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
ENDIF(NOT ${${VAR}_COMPILED}) ENDIF(NOT ${${VAR}_COMPILED})
# if the return value was 0 then it worked # if the return value was 0 then it worked
SET(result_var ${${VAR}}) SET(result_var ${${VAR}})
IF(${result_var} EQUAL 0) IF("${result_var}" EQUAL 0)
SET(${VAR} 1 CACHE INTERNAL "Test ${FUNCTION}") SET(${VAR} 1 CACHE INTERNAL "Test ${FUNCTION}")
MESSAGE(STATUS "Performing Test ${VAR} - Success") MESSAGE(STATUS "Performing Test ${VAR} - Success")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
@ -54,7 +54,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
"${OUTPUT}\n" "${OUTPUT}\n"
"Return value: ${${VAR}}\n" "Return value: ${${VAR}}\n"
"Source file was:\n${SOURCE}\n") "Source file was:\n${SOURCE}\n")
ELSE(${result_var} EQUAL 0) ELSE("${result_var}" EQUAL 0)
MESSAGE(STATUS "Performing Test ${VAR} - Failed") MESSAGE(STATUS "Performing Test ${VAR} - Failed")
SET(${VAR} "" CACHE INTERNAL "Test ${FUNCTION}") SET(${VAR} "" CACHE INTERNAL "Test ${FUNCTION}")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
@ -62,7 +62,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
"${OUTPUT}\n" "${OUTPUT}\n"
"Return value: ${result_var}\n" "Return value: ${result_var}\n"
"Source file was:\n${SOURCE}\n") "Source file was:\n${SOURCE}\n")
ENDIF(${result_var} EQUAL 0) ENDIF("${result_var}" EQUAL 0)
ENDIF("${VAR}" MATCHES "^${VAR}$") ENDIF("${VAR}" MATCHES "^${VAR}$")
ENDMACRO(CHECK_C_SOURCE_RUNS) ENDMACRO(CHECK_C_SOURCE_RUNS)