summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorFelipe Torrezan <felipe.torrezan@iar.com>2021-02-10 13:20:25 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-12 11:51:05 (GMT)
commit8ee933900e53646a9d4753211d6828b1dfb21709 (patch)
tree1979ed57efcaa41891d51822ca070a9f8f960e5e /Modules/Compiler/IAR-DetermineCompiler.cmake
parentfaec25c19899faef39d082b5b0b2e1120c298459 (diff)
downloadCMake-8ee933900e53646a9d4753211d6828b1dfb21709.zip
CMake-8ee933900e53646a9d4753211d6828b1dfb21709.tar.gz
CMake-8ee933900e53646a9d4753211d6828b1dfb21709.tar.bz2
IAR: add support for the STM8 compiler
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 0a026b2..443b09c 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__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__))
+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
# 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__)