diff options
author | Brad King <brad.king@kitware.com> | 2021-09-23 14:29:08 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-09-23 14:29:24 (GMT) |
commit | 3f46b94e0aa6aa12dc3f14452b51d82c73244260 (patch) | |
tree | 0458afae24777088961a846bea949313c16a2740 /Modules | |
parent | efed2f8706b46d2f5c7711a9426b7e23a08b9709 (diff) | |
parent | 9254e7ddf2d3be2dd97fb30ae79cf3fe1fbbda2a (diff) | |
download | CMake-3f46b94e0aa6aa12dc3f14452b51d82c73244260.zip CMake-3f46b94e0aa6aa12dc3f14452b51d82c73244260.tar.gz CMake-3f46b94e0aa6aa12dc3f14452b51d82c73244260.tar.bz2 |
Merge topic 'IAR-executable-suffix'
9254e7ddf2 IAR: Use same executable suffix as try_compile
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6546
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/IAR.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/IAR.cmake b/Modules/Compiler/IAR.cmake index 2200a21..dc48cda 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_${lang} ".elf") + 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>") @@ -74,7 +74,7 @@ macro(__compiler_iar_ilink lang) endmacro() macro(__compiler_iar_xlink lang) - set(CMAKE_EXECUTABLE_SUFFIX_${lang} ".bin") + set(CMAKE_EXECUTABLE_SUFFIX ".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>") |