diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-04-18 18:37:04 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-04-18 18:37:04 (GMT) |
commit | ad113d4df2632ed4a8f5233ca9319c6092c39fd6 (patch) | |
tree | 6e77edd34c7811c65f0ced57a8bf04ca79ca2213 /Modules/CMakeTestCCompiler.cmake | |
parent | 7929462a3974e397d75d64bdd3492059107255e3 (diff) | |
download | CMake-ad113d4df2632ed4a8f5233ca9319c6092c39fd6.zip CMake-ad113d4df2632ed4a8f5233ca9319c6092c39fd6.tar.gz CMake-ad113d4df2632ed4a8f5233ca9319c6092c39fd6.tar.bz2 |
BUG: fix cmake so that if you configure with a bad env for cl, then with a good path, it will configure correctly
Diffstat (limited to 'Modules/CMakeTestCCompiler.cmake')
-rw-r--r-- | Modules/CMakeTestCCompiler.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake index 0eac2fc..00167cc 100644 --- a/Modules/CMakeTestCCompiler.cmake +++ b/Modules/CMakeTestCCompiler.cmake @@ -29,6 +29,11 @@ IF(NOT CMAKE_C_COMPILER_WORKS) FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Determining if the C compiler works failed with " "the following output:\n${OUTPUT}\n\n") + # if the compiler is broken make sure to remove the platform file + # since Windows-cl configures both c/cxx files both need to be removed + # when c or c++ fails + FILE(REMOVE ${CMAKE_PLATFORM_ROOT_BIN}/CMakeCPlatform.cmake ) + FILE(REMOVE ${CMAKE_PLATFORM_ROOT_BIN}/CMakeCXXPlatform.cmake ) MESSAGE(FATAL_ERROR "The C compiler \"${CMAKE_C_COMPILER}\" " "is not able to compile a simple test program.\nIt fails " "with the following output:\n ${OUTPUT}\n\n" |