summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-27 15:25:15 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-27 15:25:15 (GMT)
commitff930f75aa8966ce4201d202034c11d8cb6b3023 (patch)
tree9471d36e9d93d0a6694a1094a184cabdce97e99a
parentd454231a0ad52f387bd97d5c683a3131d77c4701 (diff)
downloadCMake-ff930f75aa8966ce4201d202034c11d8cb6b3023.zip
CMake-ff930f75aa8966ce4201d202034c11d8cb6b3023.tar.gz
CMake-ff930f75aa8966ce4201d202034c11d8cb6b3023.tar.bz2
BUG: When a try-run fails to compile create the run result cache entry with a bogus non-zero return value to avoid running the test again.
-rw-r--r--Source/kwsys/kwsysPlatformCxxTests.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformCxxTests.cmake b/Source/kwsys/kwsysPlatformCxxTests.cmake
index 175dc03..bd07f61 100644
--- a/Source/kwsys/kwsysPlatformCxxTests.cmake
+++ b/Source/kwsys/kwsysPlatformCxxTests.cmake
@@ -68,6 +68,7 @@ MACRO(KWSYS_PLATFORM_CXX_TEST_RUN var description invert)
FILE(APPEND
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
"${description} failed to compile with the following output:\n${OUTPUT}\n\n")
+ SET(${var} -1 CACHE INTERNAL "${description} failed to compile.")
ENDIF(${var}_COMPILED)
IF(${invert} MATCHES INVERT)