diff options
author | Micael Borgefeldt <micael.borgefeldt@iar.com> | 2019-10-11 12:51:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-11 14:22:52 (GMT) |
commit | 5652e11ea1543a9d3038bf104607bf13feb5582a (patch) | |
tree | c870154eabc4bef527b13212bcd05e969dc9f02f /Modules/Compiler/IAR-CXX.cmake | |
parent | 6e51db9a40cda01907322da384a84bf5c4237231 (diff) | |
download | CMake-5652e11ea1543a9d3038bf104607bf13feb5582a.zip CMake-5652e11ea1543a9d3038bf104607bf13feb5582a.tar.gz CMake-5652e11ea1543a9d3038bf104607bf13feb5582a.tar.bz2 |
IAR: Add 8051 support
Issue: #17264
Diffstat (limited to 'Modules/Compiler/IAR-CXX.cmake')
-rw-r--r-- | Modules/Compiler/IAR-CXX.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-CXX.cmake b/Modules/Compiler/IAR-CXX.cmake index 549d242..eca89c5 100644 --- a/Modules/Compiler/IAR-CXX.cmake +++ b/Modules/Compiler/IAR-CXX.cmake @@ -72,6 +72,12 @@ 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") + +elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "8051") + __compiler_iar_xlink(CXX) + __compiler_check_default_language_standard(CXX 6.10 98) + set(CMAKE_C_OUTPUT_EXTENSION ".r51") + else() message(FATAL_ERROR "CMAKE_CXX_COMPILER_ARCHITECTURE_ID not detected. This should be automatic." ) endif() |