diff options
author | Brad King <brad.king@kitware.com> | 2020-10-16 13:19:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-16 13:21:19 (GMT) |
commit | 39b964272ca1d2d663c70ac925b69f1ff89a7739 (patch) | |
tree | 18e87b0aa880f17299a6185dcb80911bb3edd069 | |
parent | a11ea1a9ee8cbf53d0d43a80505d200b6edb91ed (diff) | |
parent | b357f78196792b5fb9c6da0a0fdd2a3de2c1833a (diff) | |
download | CMake-39b964272ca1d2d663c70ac925b69f1ff89a7739.zip CMake-39b964272ca1d2d663c70ac925b69f1ff89a7739.tar.gz CMake-39b964272ca1d2d663c70ac925b69f1ff89a7739.tar.bz2 |
Merge topic 'iar-obj-declutter' into release-3.19
b357f78196 IAR: Use .o object file extension with IAR-Ilink toolchains
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5380
-rw-r--r-- | Modules/Compiler/IAR.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR.cmake b/Modules/Compiler/IAR.cmake index 296e2fd..f3938a9 100644 --- a/Modules/Compiler/IAR.cmake +++ b/Modules/Compiler/IAR.cmake @@ -42,6 +42,7 @@ include_guard() macro(__compiler_iar_ilink lang) set(CMAKE_EXECUTABLE_SUFFIX ".elf") + set(CMAKE_${lang}_OUTPUT_EXTENSION ".o") if (${lang} STREQUAL "C" OR ${lang} STREQUAL "CXX") set(CMAKE_${lang}_COMPILE_OBJECT "<CMAKE_${lang}_COMPILER> ${CMAKE_IAR_${lang}_FLAG} --silent <SOURCE> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT>") set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> ${CMAKE_IAR_${lang}_FLAG} --silent <SOURCE> <DEFINES> <INCLUDES> <FLAGS> --preprocess=cnl <PREPROCESSED_SOURCE>") |