summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCXXSourceRuns.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-13 14:29:36 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-13 14:29:36 (GMT)
commit8e6f6155c0e973dada7f2635c48974c426b84ecf (patch)
tree25688b883097f58ead5d04d8f8df9f30d65ba472 /Modules/CheckCXXSourceRuns.cmake
parent378a8e99f90a844b95f049afd751176e9455fe54 (diff)
downloadCMake-8e6f6155c0e973dada7f2635c48974c426b84ecf.zip
CMake-8e6f6155c0e973dada7f2635c48974c426b84ecf.tar.gz
CMake-8e6f6155c0e973dada7f2635c48974c426b84ecf.tar.bz2
BUG: the SET( ... CACHE INTERNAL) didn't work as expected, since the
variable is already added to the cache inside cmTryRunCommand.cxx, so the value used here was ignored. Additionally the INTERNAL made it internal, which shouldn't be done when cross compiling, since here the user is required to edit this variable manually e.g. using ccmake. Alex
Diffstat (limited to 'Modules/CheckCXXSourceRuns.cmake')
-rw-r--r--Modules/CheckCXXSourceRuns.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/CheckCXXSourceRuns.cmake b/Modules/CheckCXXSourceRuns.cmake
index f117977..920a554 100644
--- a/Modules/CheckCXXSourceRuns.cmake
+++ b/Modules/CheckCXXSourceRuns.cmake
@@ -48,7 +48,6 @@ MACRO(CHECK_CXX_SOURCE_RUNS SOURCE VAR)
# if the return value was 0 then it worked
SET(result_var ${${VAR}})
IF("${result_var}" EQUAL 0)
- SET(${VAR} 1 CACHE INTERNAL "Test ${VAR}")
MESSAGE(STATUS "Performing Test ${VAR} - Success")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
"Performing C++ SOURCE FILE Test ${VAR} succeded with the following output:\n"
@@ -57,7 +56,6 @@ MACRO(CHECK_CXX_SOURCE_RUNS SOURCE VAR)
"Source file was:\n${SOURCE}\n")
ELSE("${result_var}" EQUAL 0)
MESSAGE(STATUS "Performing Test ${VAR} - Failed")
- SET(${VAR} "" CACHE INTERNAL "Test ${VAR}")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
"Performing C++ SOURCE FILE Test ${VAR} failed with the following output:\n"
"${OUTPUT}\n"