diff options
author | Brad King <brad.king@kitware.com> | 2006-08-27 15:25:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-27 15:25:15 (GMT) |
commit | ff930f75aa8966ce4201d202034c11d8cb6b3023 (patch) | |
tree | 9471d36e9d93d0a6694a1094a184cabdce97e99a | |
parent | d454231a0ad52f387bd97d5c683a3131d77c4701 (diff) | |
download | CMake-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.cmake | 1 |
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) |