summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorStefan Andersson <tfosm@hotmail.com>2019-04-05 09:50:59 (GMT)
committerStefan Andersson <tfosm@hotmail.com>2019-04-12 07:10:02 (GMT)
commitea83d0f8fb8fd6806c4d5f32e0392638ddc3b65e (patch)
tree1640a28ff8cc7d50d7a043decb5c948e918e563a /Modules/CMakeDetermineCompilerId.cmake
parent52fb35bd69ec2fa1a5307695cb22c3f125debf4f (diff)
downloadCMake-ea83d0f8fb8fd6806c4d5f32e0392638ddc3b65e.zip
CMake-ea83d0f8fb8fd6806c4d5f32e0392638ddc3b65e.tar.gz
CMake-ea83d0f8fb8fd6806c4d5f32e0392638ddc3b65e.tar.bz2
IAR: Generalize and add support for IAR RX compiler
Moved common ASM setup to the common macros and changed version check.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 594f85b..c1c9982 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -110,8 +110,15 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
else()
set(_version "")
endif()
+ if(CMAKE_${lang}_COMPILER_ARCHITECTURE_ID)
+ set(_archid " ${CMAKE_${lang}_COMPILER_ARCHITECTURE_ID}")
+ else()
+ set(_archid "")
+ endif()
message(STATUS "The ${lang} compiler identification is "
- "${CMAKE_${lang}_COMPILER_ID}${_version}")
+ "${CMAKE_${lang}_COMPILER_ID}${_archid}${_version}")
+ unset(_archid)
+ unset(_version)
else()
message(STATUS "The ${lang} compiler identification is unknown")
endif()