From 7f99086d640b60324bf3d0e1768eb545c52d4df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Tue, 16 Oct 2018 16:14:02 +0200 Subject: [PATCH] cmake: Fix 'run' command of native_posix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'run' target was missing it's dependency on the executable and thereby behaving incorrectly. This fixes #10639 . Signed-off-by: Sebastian Bøe --- cmake/emu/native.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/emu/native.cmake b/cmake/emu/native.cmake index 563e043088e..77c165d341e 100644 --- a/cmake/emu/native.cmake +++ b/cmake/emu/native.cmake @@ -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 )