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()
218218# Set post build operations
219219#
220220function (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
222222 # executable suffix for all toolchains as CMake hardcodes the name of the
223223 # 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" )
225225 mbed_validate_application_profile(${target} )
226226 mbed_generate_bin_hex(${target} )
227227
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ endfunction()
7070# See https://gitlab.kitware.com/cmake/cmake/-/issues/21538
7171function (mbed_configure_memory_map target mapfile)
7272 target_link_options (${target}
73- INTERFACE
73+ PRIVATE
7474 "--map"
7575 "--list=${mapfile} "
7676 )
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ endfunction()
8888# Add linker flags to generate a mapfile with a given name
8989function (mbed_configure_memory_map target mapfile)
9090 target_link_options (${target}
91- INTERFACE
91+ PRIVATE
9292 "-Wl,-Map=${mapfile} "
9393 )
9494endfunction ()
You can’t perform that action at this time.
0 commit comments