tests: misc: check_init_priorities: check for zephyr_pre1 target

zephyr_pre1 target may not always exists, e.g. if second linking pass is
not needed.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2023-06-14 16:27:03 +02:00 committed by Carles Cufí
commit aedcc0b59d

View file

@ -17,7 +17,9 @@ add_custom_target(
${output_file} ${output_file}
DEPENDS zephyr_pre0 DEPENDS zephyr_pre0
) )
add_dependencies(zephyr_pre1 check_init_priorities_output) if (TARGET zephyr_pre1)
add_dependencies(zephyr_pre1 check_init_priorities_output)
endif()
project(check_init_priorities) project(check_init_priorities)