File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,10 @@ endfunction()
218
218
# Set post build operations
219
219
#
220
220
function (mbed_set_post_build target )
221
- # The mapfile name includes the top-level target name and the
221
+ # The mapfile name includes the top-level target name and the
222
222
# executable suffix for all toolchains as CMake hardcodes the name of the
223
223
# diagnostic output file for some toolchains.
224
- mbed_configure_memory_map (mbed-core "${CMAKE_CURRENT_BINARY_DIR} /${target}${CMAKE_EXECUTABLE_SUFFIX} .map" )
224
+ mbed_configure_memory_map (${target} "${CMAKE_CURRENT_BINARY_DIR} /${target}${CMAKE_EXECUTABLE_SUFFIX} .map" )
225
225
mbed_validate_application_profile (${target} )
226
226
mbed_generate_bin_hex (${target} )
227
227
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ endfunction()
70
70
# See https://gitlab.kitware.com/cmake/cmake/-/issues/21538
71
71
function (mbed_configure_memory_map target mapfile )
72
72
target_link_options (${target}
73
- INTERFACE
73
+ PRIVATE
74
74
"--map"
75
75
"--list=${mapfile} "
76
76
)
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ endfunction()
88
88
# Add linker flags to generate a mapfile with a given name
89
89
function (mbed_configure_memory_map target mapfile )
90
90
target_link_options (${target}
91
- INTERFACE
91
+ PRIVATE
92
92
"-Wl,-Map=${mapfile} "
93
93
)
94
94
endfunction ()
You can’t perform that action at this time.
0 commit comments