Skip to content

Commit

Permalink
cmake run_native: Fix target dependency
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aescolar authored and fabiobaltieri committed Oct 3, 2023
1 parent 3f39f70 commit e11bc94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/emu/native.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit e11bc94

Please sign in to comment.