Skip to content

Commit

Permalink
Add ALL target for ament_generate_version_header target. (#526) (#527)
Browse files Browse the repository at this point in the history
This is necessary when using ament_generate_version_header()
with a target that is an INTERFACE library, so that it
actually gets built.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit 1388e09)

Co-authored-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
mergify[bot] and clalancette authored May 14, 2024
1 parent 5852ffb commit cac0b01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function(ament_generate_version_header target)
"${SCRIPT_TEMPLATE_FILE}"
COMMENT "Generating ${ARG_HEADER_PATH}")

add_custom_target("ament_generate_version_header__${target}"
add_custom_target("ament_generate_version_header__${target}" ALL
DEPENDS "${GENERATED_HEADER_FILE}")
add_dependencies("${target}" "ament_generate_version_header__${target}")

Expand Down

0 comments on commit cac0b01

Please sign in to comment.