We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93843a commit 70b2193Copy full SHA for 70b2193
tools/cmake/mbed_set_post_build.cmake
@@ -87,6 +87,12 @@ function(mbed_set_post_build target)
87
# The mapfile name includes the top-level target name and the
88
# executable suffix for all toolchains as CMake hardcodes the name of the
89
# diagnostic output file for some toolchains.
90
+
91
+ # COPY_FILE could be used with cmake >=3.21
92
+ file(COPY_FILE
93
+ "${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.map"
94
+ "${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.map.old"
95
+ RESULT 0)
96
mbed_configure_memory_map(${target} "${CMAKE_CURRENT_BINARY_DIR}/${target}${CMAKE_EXECUTABLE_SUFFIX}.map")
97
mbed_validate_application_profile(${target})
98
mbed_generate_bin_hex(${target})
0 commit comments