Skip to content

Commit

Permalink
Add ALL target for ament_generate_version_header target. (#526)
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 <[email protected]>
  • Loading branch information
clalancette authored May 13, 2024
1 parent 79cc237 commit 1388e09
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 1388e09

Please sign in to comment.