cmake: allow appending dependencies to report targets

To facilitate extending the generated reports without having to
patch this file, leverage generator-expression so that
dependencies can be added to the 'zephyr_property_target' target.

Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
This commit is contained in:
Håkon Øye Amundsen 2020-01-17 14:03:11 +00:00 committed by Anas Nashif
parent 25769e3fff
commit 995e3676f3
1 changed files with 1 additions and 0 deletions

View File

@ -14,5 +14,6 @@ foreach(report ram_report rom_report)
--nm ${CMAKE_NM}
-o ${PROJECT_BINARY_DIR}
DEPENDS ${logical_target_for_zephyr_elf}
$<TARGET_PROPERTY:zephyr_property_target,${report}_DEPENDENCIES>
)
endforeach()