From ff930f75aa8966ce4201d202034c11d8cb6b3023 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 27 Aug 2006 11:25:15 -0400 Subject: [PATCH] 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. --- Source/kwsys/kwsysPlatformCxxTests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/kwsys/kwsysPlatformCxxTests.cmake b/Source/kwsys/kwsysPlatformCxxTests.cmake index 175dc031b..bd07f61a9 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)