File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function(mbed_set_mbed_target_linker_script target)
140
140
target_link_options (mbed-core
141
141
INTERFACE
142
142
"-T" "${CMAKE_BINARY_DIR} /${target} .link_script.ld"
143
- "-Wl,-Map=${CMAKE_BINARY_DIR} /${target} .map"
143
+ "-Wl,-Map=${CMAKE_BINARY_DIR} /${target}${CMAKE_EXECUTABLE_SUFFIX} .map"
144
144
)
145
145
elseif (MBED_TOOLCHAIN STREQUAL "ARM" )
146
146
set (CMAKE_PRE_BUILD_COMMAND COMMAND "" )
Original file line number Diff line number Diff line change @@ -19,3 +19,7 @@ endif()
19
19
include (${MBED_PATH} /tools/cmake/profile.cmake )
20
20
21
21
enable_language (C CXX ASM )
22
+
23
+ # set executable suffix (has to be done after enabling languages)
24
+ # Note: This is nice to have, but is also required because STM32Cube will only work on files with a .elf extension
25
+ set (CMAKE_EXECUTABLE_SUFFIX .elf )
You can’t perform that action at this time.
0 commit comments