summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-20 15:55:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-07-20 15:56:01 (GMT)
commitf7d82cb6f775d65d886235822d0abaee4d13171e (patch)
tree08753565d6544b5fb9710f0b7f388f86c7e7e0fe /Modules/Compiler
parentf2198bba67b58efbba3687ccf5b2b67d31cf4ba7 (diff)
parent09bc0785eeae95e23f9ac5c2e945fa89cb994912 (diff)
downloadCMake-f7d82cb6f775d65d886235822d0abaee4d13171e.zip
CMake-f7d82cb6f775d65d886235822d0abaee4d13171e.tar.gz
CMake-f7d82cb6f775d65d886235822d0abaee4d13171e.tar.bz2
Merge topic 'iar-exe-suffix'
09bc0785ee Help: Document CMAKE_EXECUTABLE_SUFFIX_<LANG> explicitly 05a3bafe65 Compiler/IAR: Avoid clobbering CMAKE_EXECUTABLE_SUFFIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6357
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/IAR.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/IAR.cmake b/Modules/Compiler/IAR.cmake
index 8bfc3ef..a6b436a 100644
--- a/Modules/Compiler/IAR.cmake
+++ b/Modules/Compiler/IAR.cmake
@@ -41,7 +41,7 @@
include_guard()
macro(__compiler_iar_ilink lang)
- set(CMAKE_EXECUTABLE_SUFFIX ".elf")
+ set(CMAKE_EXECUTABLE_SUFFIX_${lang} ".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>")
@@ -77,7 +77,7 @@ macro(__compiler_iar_ilink lang)
endmacro()
macro(__compiler_iar_xlink lang)
- set(CMAKE_EXECUTABLE_SUFFIX ".bin")
+ set(CMAKE_EXECUTABLE_SUFFIX_${lang} ".bin")
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>")