summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-04 10:04:23 -0500
committerBrad King <brad.king@kitware.com>2008-02-04 10:04:23 -0500
commitc12a7e388d449e96107ba1eea8b8b2f2469ec20f (patch)
tree46a1f1d7416b3458a5e2094dd990d1aee8aa8ff1 /Modules/CMakeDetermineCCompiler.cmake
parente67dc68a3b18f3fb1f7adcb752588c2717dc1986 (diff)
downloadcmake-c12a7e388d449e96107ba1eea8b8b2f2469ec20f.tar.gz
BUG: When configuring compiler information files into the CMakeFiles directory in the project build tree, use IMMEDIATE option for CONFIGURE_FILE explicitly. It is needed in case the user sets CMAKE_BACKWARDS_COMPATIBILITY to 2.0 or lower.
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 0f88f893ea..610ec6cb05 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -132,7 +132,8 @@ INCLUDE(CMakeFindBinUtils)
# configure variables set in this file for fast reload later on
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeCCompiler.cmake.in
- "${CMAKE_PLATFORM_ROOT_BIN}/CMakeCCompiler.cmake"
- @ONLY)
+ "${CMAKE_PLATFORM_ROOT_BIN}/CMakeCCompiler.cmake"
+ @ONLY IMMEDIATE # IMMEDIATE must be here for compatibility mode <= 2.0
+ )
SET(CMAKE_C_COMPILER_ENV_VAR "CC")