Browse Source

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.

Brad King 19 years ago
parent
commit
ff930f75aa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/kwsys/kwsysPlatformCxxTests.cmake

+ 1 - 0
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)