summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-CXX.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-CXX.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-CXX.cmake')
-rw-r--r--Modules/Compiler/IAR-CXX.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-CXX.cmake b/Modules/Compiler/IAR-CXX.cmake
index eca89c5..d93b272 100644
--- a/Modules/Compiler/IAR-CXX.cmake
+++ b/Modules/Compiler/IAR-CXX.cmake
@@ -78,6 +78,10 @@ elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "8051")
__compiler_check_default_language_standard(CXX 6.10 98)
set(CMAKE_C_OUTPUT_EXTENSION ".r51")
+elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "STM8")
+ __compiler_iar_ilink(CXX)
+ __compiler_check_default_language_standard(CXX 3.11 98)
+
else()
message(FATAL_ERROR "CMAKE_CXX_COMPILER_ARCHITECTURE_ID not detected. This should be automatic." )
endif()