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

add note regarding SYSTEM usage for ament_target_dependencies #353

Closed
wants to merge 1 commit into from

Conversation

gleichdick
Copy link
Contributor

As discussed in moveit/warehouse_ros#86 and here, using the SYSTEM directive for ROS packages in ament_target_dependencies should be discouraged because of gcc's -isystem behaviour.

@sloretz
Copy link
Contributor

sloretz commented Aug 3, 2021

I'm not sure the answer is as clear cut as it was in ROS 1. ROS 2 packages have been using modern CMake targets for a while now, and I can't find the CMake documentation but include directories gotten from imported targets are included as -isystem by default. Not using -isystem may actually cause more trouble with overlay workspaces now.

Related to ros2/ros2#1150

@clalancette
Copy link
Contributor

OK, given the fixes and more recent work we've done with overlays (specifically #321 (comment)), I think we should not put this note in. So I'm going to close this one out.

@clalancette clalancette closed this Feb 3, 2022
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.

3 participants