From b357f78196792b5fb9c6da0a0fdd2a3de2c1833a Mon Sep 17 00:00:00 2001 From: Felipe Torrezan Date: Thu, 15 Oct 2020 10:21:59 -0400 Subject: IAR: Use .o object file extension with IAR-Ilink toolchains The compiler default extension for its objects is `.o`. Prefer that over `.obj`. --- Modules/Compiler/IAR.cmake | 1 + 1 file changed, 1 insertion(+) 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_IAR_${lang}_FLAG} --silent -o ") set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE " ${CMAKE_IAR_${lang}_FLAG} --silent --preprocess=cnl ") -- cgit v0.12