summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorStefan Andersson <tfosm@hotmail.com>2019-05-06 09:25:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-08 16:55:18 (GMT)
commit41780964936b03754a6551c65d4fd938521130b5 (patch)
tree29a82d47cab8c8f9d203eba9de30ac4c34c2d394 /Modules/Compiler/IAR-DetermineCompiler.cmake
parent0f27e7d165c96f2c3ada1695df4f6cfaa44afe51 (diff)
downloadCMake-41780964936b03754a6551c65d4fd938521130b5.zip
CMake-41780964936b03754a6551c65d4fd938521130b5.tar.gz
CMake-41780964936b03754a6551c65d4fd938521130b5.tar.bz2
IAR: Add architecture support for RL78, RH850 and MSP430
Diffstat (limited to 'Modules/Compiler/IAR-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/IAR-DetermineCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/IAR-DetermineCompiler.cmake b/Modules/Compiler/IAR-DetermineCompiler.cmake
index cdfb095..6b09c40 100644
--- a/Modules/Compiler/IAR-DetermineCompiler.cmake
+++ b/Modules/Compiler/IAR-DetermineCompiler.cmake
@@ -31,7 +31,7 @@ set(_compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(((__VER__) / 1000) % 1000)
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@((__VER__) % 1000)
# define @PREFIX@COMPILER_VERSION_INTERNAL @MACRO_DEC@(__IAR_SYSTEMS_ICC__)
-# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__))
+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__))
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@((__VER__) / 100)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@((__VER__) - (((__VER__) / 100)*100))
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__SUBVERSION__)