feat(autoware_cmake): support USE_SCOPED_HEADER_INSTALL_DIR in autoware_ament_auto_package#40
Merged
mitsudome-r merged 2 commits intoautowarefoundation:mainfrom Apr 1, 2026
Conversation
…re_ament_auto_package
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
mitsudome-r
reviewed
Mar 30, 2026
Removed unnecessary FILES_MATCHING patterns from install commands.
mitsudome-r
approved these changes
Apr 1, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates
autoware_ament_auto_package()to supportUSE_SCOPED_HEADER_INSTALL_DIR.This change is based on the scoped header installation investigation for avoiding resolution against apt-installed Autoware packages and prioritizing vcs-imported source packages.
Changes:
USE_SCOPED_HEADER_INSTALL_DIRincmake_parse_arguments()ament_package()include/${PROJECT_NAME}when the option is enabledincludebehavior when the option is not enabledThis fixes the configure-time error on Humble where
ament_package()receives an unsupported argument, and also makes the scoped header install option actually functional.How was this PR tested?
Tested with clean build investigation using
autoware_point_types.Before the fix, enabling
USE_SCOPED_HEADER_INSTALL_DIRcaused:After this change:
USE_SCOPED_HEADER_INSTALL_DIRenabledNotes for reviewers
This is the base change needed before replacing
ament_auto_package()withautoware_ament_auto_package()in affected packages.Effects on system behavior
None, unless
USE_SCOPED_HEADER_INSTALL_DIRis explicitly enabled.