summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-21 14:56:54 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-21 14:58:18 (GMT)
commit4c0fb923b7747f1eed0bfa73b8d1653997e1bda9 (patch)
tree97ee46497064f4b03cf25ded319cfd71427d26e1 /Modules/CMakeDetermineCompilerId.cmake
parent0bf53483295a4b7de358e8b85ad44866d89633c5 (diff)
downloadCMake-4c0fb923b7747f1eed0bfa73b8d1653997e1bda9.zip
CMake-4c0fb923b7747f1eed0bfa73b8d1653997e1bda9.tar.gz
CMake-4c0fb923b7747f1eed0bfa73b8d1653997e1bda9.tar.bz2
IAR: Do not print compiler architecture id for non-IAR compilers
The compiler identification message was modified in commit ea83d0f8fb (IAR: Generalize and add support for IAR RX compiler, 2019-04-05) to include the architecture id since IAR compilers are arch-specific. Revise the logic to avoid modifying the message for other compilers.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 7036b93..2321e11 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -143,7 +143,7 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
else()
set(_version "")
endif()
- if(CMAKE_${lang}_COMPILER_ARCHITECTURE_ID)
+ if(CMAKE_${lang}_COMPILER_ARCHITECTURE_ID AND "x${CMAKE_${lang}_COMPILER_ID}" STREQUAL "xIAR")
set(_archid " ${CMAKE_${lang}_COMPILER_ARCHITECTURE_ID}")
else()
set(_archid "")