Skip to content

Export Threads dependency - #63

Merged
David-LP99 merged 1 commit into
rollingfrom
fix/export_treads_dependency
Sep 14, 2026
Merged

David-LP99 merged 1 commit into
rollingfrom
fix/export_treads_dependency

Conversation

@David-LP99

Copy link
Copy Markdown

Description

The Threads dependency added in ros2#579 and gated in #56 causes errors in consumers because they cannot resolve the Threads::Threads target in the static micro-ROS build. Because of this type of build, CMake forwards the PRIVATE Threads::Threads to the consumers, which makes it appear in rcutilsExport.cmake but undefined since Threads was not exported.

This PR solves this by exporting the target when the build needs it (RCUTILS_NO_THREAD_SUPPORT=OFF).

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>
@mergify

mergify Bot commented Sep 14, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@EugenioCollado EugenioCollado left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@David-LP99

Copy link
Copy Markdown
Author

@mergify backport lyrical

@David-LP99
David-LP99 merged commit 97cb03a into rolling Sep 14, 2026
3 checks passed
@David-LP99
David-LP99 deleted the fix/export_treads_dependency branch September 14, 2026 13:46
@mergify

mergify Bot commented Sep 14, 2026

Copy link
Copy Markdown

backport lyrical

✅ Backports have been created

Details

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