Commit 9f594610 authored by Kesavan Yogeswaran's avatar Kesavan Yogeswaran Committed by Johan Hedberg
Browse files

cmake: Clarify comment for zephyr_generated_headers library

Clean up the comment around the zephyr_generated_headers CMake library
to make it more accurate, now that the library is an interface library
rather than a custom target.

This is a follow-up to non-blocking feedback from
https://github.com/zephyrproject-rtos/zephyr/pull/92927

.

Signed-off-by: default avatarKesavan Yogeswaran <hikes@google.com>
parent 1b7b6af7
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -955,12 +955,12 @@ add_custom_target(${DEVICE_API_LD_TARGET}

zephyr_linker_include_generated(CMAKE ${DEVICE_API_LINKER_SECTIONS_CMAKE})

# Add a pseudo-target that is up-to-date when all generated headers
# are up-to-date. Libraries containing files that include these headers can use
# add_dependencies or target_link_libraries against this target to ensure that
# generated headers are up-to-date before the libraries are built. This ordering
# dependency can be propagated to these libraries' dependenents via the PUBLIC
# or INTERFACE option of target_link_libraries.
# Create an interface library which collects the dependencies to Zephyr
# generated headers. Libraries containing files that include these headers can
# use add_dependencies or target_link_libraries against this target to ensure
# that generated headers are up-to-date before the libraries are built. This
# ordering dependency can be propagated to these libraries' dependenents via
# the PUBLIC or INTERFACE option of target_link_libraries.

add_library(zephyr_generated_headers INTERFACE)
add_dependencies(zephyr_generated_headers