cmake: Fix 'run' command of native_posix

The 'run' target was missing it's dependency on the executable and
thereby behaving incorrectly.

This fixes #10639 .

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-10-16 16:14:02 +02:00 committed by Anas Nashif
commit 7f99086d64

View file

@ -1,6 +1,7 @@
add_custom_target(run
COMMAND
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_EXE_NAME}
DEPENDS ${logical_target_for_zephyr_elf}
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
USES_TERMINAL
)