Skip to content

Add DEPENDS_EXPLICIT_ONLY to remove implicit dependencies#238

Merged
sloretz merged 3 commits intoros2:rollingfrom
TonyWelte:bugfix/remove-implicit-dependencies
Jan 16, 2026
Merged

Add DEPENDS_EXPLICIT_ONLY to remove implicit dependencies#238
sloretz merged 3 commits intoros2:rollingfrom
TonyWelte:bugfix/remove-implicit-dependencies

Conversation

@TonyWelte
Copy link
Contributor

@TonyWelte TonyWelte commented Oct 1, 2025

Description

In Draft until ros2/rosidl#910 is reviewed.

When add_custom_command is used to generate files that are then used by a target, the add_custom_command becomes implicitly dependent on the target dependencies. In rosidl add_custom_command is used to generate files from the IDL files, the generator does not depend on anything else.

This PR (and the equivalent for ros2/rosidl#910, ros2/rosidl_typesupport_fastrtps#136 and ros2/rosidl_typesupport#168) adds the DEPENDS_EXPLICIT_ONLY option of add_custom_command to most generators.

See ros2/rosidl#910 for more details

Is this user-facing behavior change?

Did you use Generative AI?

Additional Information

Signed-off-by: Anthony Welte <tony.welte@gmail.com>
@TonyWelte TonyWelte force-pushed the bugfix/remove-implicit-dependencies branch 3 times, most recently from 0e80c0d to e093302 Compare October 2, 2025 19:37
Signed-off-by: Anthony Welte <tony.welte@gmail.com>
@sloretz
Copy link
Contributor

sloretz commented Jan 16, 2026

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Jan 16, 2026

update

✅ Branch has been successfully updated

@sloretz
Copy link
Contributor

sloretz commented Jan 16, 2026

@sloretz
Copy link
Contributor

sloretz commented Jan 16, 2026

Thank you for the PR!

@sloretz sloretz merged commit fde430c into ros2:rolling Jan 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants