cmake run_native: Fix target dependency

The run_native (and therefore run) targets did not depend
on the proper thing for native_simulator based targets

Fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-10-03 10:53:57 +02:00 committed by Fabio Baltieri
parent 3f39f70799
commit e11bc94a44

View file

@ -3,7 +3,9 @@
add_custom_target(run_native
COMMAND
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_EXE_NAME}
DEPENDS ${logical_target_for_zephyr_elf}
DEPENDS
${logical_target_for_zephyr_elf}
$<$<TARGET_EXISTS:native_runner_executable>:native_runner_executable>
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
USES_TERMINAL
)