summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-20 02:58:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-20 02:58:42 (GMT)
commit4430bccc700cd8b12164f9d1b5658a14e62dd0d5 (patch)
tree8eba965c471e5620fb2957d4fcc340235b503034 /Modules/CMakeDetermineCCompiler.cmake
parent1699836b0632b5a16ceac7cfdcc76e0d753e0880 (diff)
downloadCMake-4430bccc700cd8b12164f9d1b5658a14e62dd0d5.zip
CMake-4430bccc700cd8b12164f9d1b5658a14e62dd0d5.tar.gz
CMake-4430bccc700cd8b12164f9d1b5658a14e62dd0d5.tar.bz2
Change the way 32/64 bit compiles are detected with MSVC and intel makefile builds. Use the platform ID preprocessor approach.
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index a655b0f..17fa05f 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -171,11 +171,13 @@ ENDIF (CMAKE_CROSSCOMPILING
INCLUDE(CMakeFindBinUtils)
-
+IF(MSVC_C_ARCHITECTURE_ID)
+ SET(SET_MSVC_C_ARCHITECTURE_ID
+ "SET(MSVC_C_ARCHITECTURE_ID ${MSVC_C_ARCHITECTURE_ID})")
+ENDIF(MSVC_C_ARCHITECTURE_ID)
# 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 IMMEDIATE # IMMEDIATE must be here for compatibility mode <= 2.0
- )
-
+ )
SET(CMAKE_C_COMPILER_ENV_VAR "CC")