summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCSourceRuns.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-08-03 18:38:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-08-03 18:38:46 (GMT)
commit281c71e9d80b7a0d4000df3896841ba421d45006 (patch)
treead50dee05ac1d28a1b0a94fdefee099eb8c03e55 /Modules/CheckCSourceRuns.cmake
parent947edfcdf549d4aaa60d21729c30ff3a44b3b588 (diff)
downloadCMake-281c71e9d80b7a0d4000df3896841ba421d45006.zip
CMake-281c71e9d80b7a0d4000df3896841ba421d45006.tar.gz
CMake-281c71e9d80b7a0d4000df3896841ba421d45006.tar.bz2
ENH: fix error
Diffstat (limited to 'Modules/CheckCSourceRuns.cmake')
-rw-r--r--Modules/CheckCSourceRuns.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CheckCSourceRuns.cmake b/Modules/CheckCSourceRuns.cmake
index 7b15c42..9bbde09 100644
--- a/Modules/CheckCSourceRuns.cmake
+++ b/Modules/CheckCSourceRuns.cmake
@@ -46,7 +46,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
ENDIF(NOT ${${VAR}_COMPILED})
# if the return value was 0 then it worked
SET(result_var ${${VAR}})
- IF(${result_var} EQUAL 0)
+ IF("${result_var}" EQUAL 0)
SET(${VAR} 1 CACHE INTERNAL "Test ${FUNCTION}")
MESSAGE(STATUS "Performing Test ${VAR} - Success")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
@@ -54,7 +54,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
"${OUTPUT}\n"
"Return value: ${${VAR}}\n"
"Source file was:\n${SOURCE}\n")
- ELSE(${result_var} EQUAL 0)
+ ELSE("${result_var}" EQUAL 0)
MESSAGE(STATUS "Performing Test ${VAR} - Failed")
SET(${VAR} "" CACHE INTERNAL "Test ${FUNCTION}")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
@@ -62,7 +62,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
"${OUTPUT}\n"
"Return value: ${result_var}\n"
"Source file was:\n${SOURCE}\n")
- ENDIF(${result_var} EQUAL 0)
+ ENDIF("${result_var}" EQUAL 0)
ENDIF("${VAR}" MATCHES "^${VAR}$")
ENDMACRO(CHECK_C_SOURCE_RUNS)