diff options
author | Felipe Torrezan <felipe.torrezan@iar.com> | 2020-10-15 14:21:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-15 15:49:39 (GMT) |
commit | b357f78196792b5fb9c6da0a0fdd2a3de2c1833a (patch) | |
tree | 87277837793f090176bb27c0a0ae201c6508ac19 /Modules/Compiler/IAR.cmake | |
parent | b1d9a25f35a22f41b2c1b87725f091936711a28c (diff) | |
download | CMake-b357f78196792b5fb9c6da0a0fdd2a3de2c1833a.zip CMake-b357f78196792b5fb9c6da0a0fdd2a3de2c1833a.tar.gz CMake-b357f78196792b5fb9c6da0a0fdd2a3de2c1833a.tar.bz2 |
IAR: Use .o object file extension with IAR-Ilink toolchains
The compiler default extension for its objects is `.o`.
Prefer that over `.obj`.
Diffstat (limited to 'Modules/Compiler/IAR.cmake')
-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>") |