diff options
author | Brad King <brad.king@kitware.com> | 2013-10-04 14:07:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-04 14:33:16 (GMT) |
commit | be10826bf130d7568011ec3cf97355686c298dd3 (patch) | |
tree | bb7ba3312ff564a868191f22a7f6656d151cc4b2 /Modules | |
parent | e20edcdb3d9542e16d207b498adbd5178e09df31 (diff) | |
download | CMake-be10826bf130d7568011ec3cf97355686c298dd3.zip CMake-be10826bf130d7568011ec3cf97355686c298dd3.tar.gz CMake-be10826bf130d7568011ec3cf97355686c298dd3.tar.bz2 |
CMakeDetermineCompilerId: Fix local var init
Add initialization of the ARCHITECTURE_ID local and fix the
initialization of the COMPILER_ID_TWICE local.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 8ca5334..c14372f 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -308,9 +308,10 @@ function(CMAKE_DETERMINE_COMPILER_ID_CHECK lang file) set(COMPILER_ID) set(COMPILER_VERSION) set(PLATFORM_ID) + set(ARCHITECTURE_ID) file(STRINGS ${file} CMAKE_${lang}_COMPILER_ID_STRINGS LIMIT_COUNT 4 REGEX "INFO:") - set(HAVE_COMPILER_TWICE 0) + set(COMPILER_ID_TWICE) foreach(info ${CMAKE_${lang}_COMPILER_ID_STRINGS}) if("${info}" MATCHES ".*INFO:compiler\\[([^]\"]*)\\].*") if(COMPILER_ID) |