From e11bc94a44adabc6e29c74e2c903083e42bf0991 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Tue, 3 Oct 2023 10:53:57 +0200 Subject: [PATCH] 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 --- cmake/emu/native.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/emu/native.cmake b/cmake/emu/native.cmake index 12cdd3112b7..3578f47bfc4 100644 --- a/cmake/emu/native.cmake +++ b/cmake/emu/native.cmake @@ -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} + $<$:native_runner_executable> WORKING_DIRECTORY ${APPLICATION_BINARY_DIR} USES_TERMINAL )