File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function(mbed_set_mbed_target_linker_script target)
140140 target_link_options (mbed-core
141141 INTERFACE
142142 "-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"
144144 )
145145 elseif (MBED_TOOLCHAIN STREQUAL "ARM" )
146146 set (CMAKE_PRE_BUILD_COMMAND COMMAND "" )
@@ -203,7 +203,7 @@ function(mbed_generate_map_file target)
203203 TARGET
204204 ${target}
205205 POST_BUILD
206- COMMAND ${Python3_EXECUTABLE} ${MBED_PATH} /tools/memap.py -t ${MBED_TOOLCHAIN} ${CMAKE_BINARY_DIR} /${target} .map
206+ COMMAND ${Python3_EXECUTABLE} ${MBED_PATH} /tools/memap.py -t ${MBED_TOOLCHAIN} ${CMAKE_BINARY_DIR} /${target}${CMAKE_EXECUTABLE_SUFFIX} .map
207207 WORKING_DIRECTORY
208208 ${CMAKE_BINARY_DIR}
209209 COMMENT
You can’t perform that action at this time.
0 commit comments