summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-CXX.cmake
diff options
context:
space:
mode:
authorNico Mueller <nicomueller1991@googlemail.com>2019-09-16 08:45:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-16 15:07:04 (GMT)
commitbd5006e8134a3ea5d949f9eedf139126af357820 (patch)
tree4e2f069c2df2f4c7c9d15fb4e4e05ac39312c2c7 /Modules/Compiler/IAR-CXX.cmake
parentbfa2eaa617de778ecfb2a0678c9898605822260d (diff)
downloadCMake-bd5006e8134a3ea5d949f9eedf139126af357820.zip
CMake-bd5006e8134a3ea5d949f9eedf139126af357820.tar.gz
CMake-bd5006e8134a3ea5d949f9eedf139126af357820.tar.bz2
IAR: Add v850 support
Add compiler identification for V850. Issue: #17264
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 e8f1142..549d242 100644
--- a/Modules/Compiler/IAR-CXX.cmake
+++ b/Modules/Compiler/IAR-CXX.cmake
@@ -68,6 +68,10 @@ elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "MSP430")
__compiler_check_default_language_standard(CXX 5.10 98)
set(CMAKE_CXX_OUTPUT_EXTENSION ".r43")
+elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "V850")
+ __compiler_iar_xlink(CXX)
+ __compiler_check_default_language_standard(CXX 1.10 98)
+ set(CMAKE_C_OUTPUT_EXTENSION ".r85")
else()
message(FATAL_ERROR "CMAKE_CXX_COMPILER_ARCHITECTURE_ID not detected. This should be automatic." )
endif()