Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depend on rclcpp::rclcpp target #618

Merged
merged 3 commits into from
Apr 3, 2021
Merged

Depend on rclcpp::rclcpp target #618

merged 3 commits into from
Apr 3, 2021

Conversation

audrow
Copy link
Member

@audrow audrow commented Apr 2, 2021

Signed-off-by: Audrow Nash <audrow@hey.com>
Copy link
Contributor

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

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

I actually think this should be refactored.
You generally don't have to deal with include_directories or even direct cmake targets such as rclcpp::rclcpp.

you can get rid of all these calls by simply leveraging ament_target_dependencies(simple_lifecycle_node rclpp_lifecycle).

Also, I think you should not need to depend on rclcpp. rclcpp_lifecycle should technically export rclcpp and ament_target_dependencies ought to take care of the transitive deps.

@wjwwood
Copy link
Member

wjwwood commented Apr 2, 2021

I agree with @Karsten1987 let's try the ament_target_dependencies route.

Signed-off-by: Audrow Nash <audrow@hey.com>
Copy link
Contributor

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

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

This is how I had envisioned it. 👍

Signed-off-by: Audrow Nash <audrow@hey.com>
@wjwwood wjwwood merged commit fe074a3 into master Apr 3, 2021
@delete-merged-branch delete-merged-branch bot deleted the use_tgt_compile_features branch April 3, 2021 00:30
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.

None yet

4 participants