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:
parent
3f39f70799
commit
e11bc94a44
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@
|
||||||
add_custom_target(run_native
|
add_custom_target(run_native
|
||||||
COMMAND
|
COMMAND
|
||||||
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_EXE_NAME}
|
${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}
|
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue