diff options
author | Joakim Lönnberg <joakim.lonnberg@iar.com> | 2023-05-12 11:58:32 (GMT) |
---|---|---|
committer | Joakim Lönnberg <joakim.lonnberg@iar.com> | 2023-05-12 11:58:32 (GMT) |
commit | cfec4c1c5e63eb78811aeb5e5f605b6c3a7d8400 (patch) | |
tree | 5598955042bec976a208338e2cfbe96352c5d150 /Modules/Compiler/IAR-CXX.cmake | |
parent | 7fec8f993b1a1b1bb5bc7d8e7fe2e9c5e95e1f27 (diff) | |
download | CMake-cfec4c1c5e63eb78811aeb5e5f605b6c3a7d8400.zip CMake-cfec4c1c5e63eb78811aeb5e5f605b6c3a7d8400.tar.gz CMake-cfec4c1c5e63eb78811aeb5e5f605b6c3a7d8400.tar.bz2 |
IAR: Enforce output extension for xlink targets
Diffstat (limited to 'Modules/Compiler/IAR-CXX.cmake')
-rw-r--r-- | Modules/Compiler/IAR-CXX.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/Compiler/IAR-CXX.cmake b/Modules/Compiler/IAR-CXX.cmake index 3f0ef1f..cea5e7e 100644 --- a/Modules/Compiler/IAR-CXX.cmake +++ b/Modules/Compiler/IAR-CXX.cmake @@ -69,6 +69,7 @@ elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "RISCV") elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "AVR") __compiler_iar_xlink(CXX) __compiler_check_default_language_standard(CXX 7.10 98) + set(CMAKE_CXX_OUTPUT_EXTENSION ".r90") elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "MSP430") __compiler_iar_xlink(CXX) @@ -78,12 +79,12 @@ elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "MSP430") 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") + set(CMAKE_CXX_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") + set(CMAKE_CXX_OUTPUT_EXTENSION ".r51") elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "STM8") __compiler_iar_ilink(CXX) |