zephyr/cmake/emu/native.cmake
Alberto Escolar Piedras e11bc94a44 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>
2023-10-03 15:40:08 +01:00

12 lines
319 B
CMake

# SPDX-License-Identifier: Apache-2.0
add_custom_target(run_native
COMMAND
${APPLICATION_BINARY_DIR}/zephyr/${KERNEL_EXE_NAME}
DEPENDS
${logical_target_for_zephyr_elf}
$<$<TARGET_EXISTS:native_runner_executable>:native_runner_executable>
WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
USES_TERMINAL
)