e.g.
add_custom_command(TARGET xip_ram_perms
COMMAND ${CMAKE_COMMAND} -E copy ${XIP_RAM_PERMS_ELF} ${CMAKE_BINARY_DIR}/xip_ram_perms.elf
DEPENDS xip_ram_perms
)
Newest CMake now complains about this:
- you must now specify
POST_BUILD
explicitly
DEPENDS
was always incorrect I guess