-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rely on target_link_libraries to add include directories
Fixes ros2/ros2#1150 The current solution only orders the declared dependencies (and not their transitive dependencies). Instead or order the include directories, we can instead order the targets themselves based on a heuristic that checks if the dependencies are part of the current overlay or not. Dependencies that are part of the current overlay are prepended to the interface list so that we make sure to find their include directories before any in an underlay. Signed-off-by: Jacob Perron <[email protected]>
- Loading branch information
1 parent
3f992ad
commit a284c00
Showing
1 changed file
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What if we have several overlays? So I built some set of packages in overlay
A
, sourced it and built other set n overlayB
. All includes from overlayA
will not be sorted.ament_include_directories_order
handlesAMENT_PREFIX_PATH
variable and it seems like paths inAMENT_PREFIX_PATH
are already sorted in right way