-
Notifications
You must be signed in to change notification settings - Fork 778
default to not use vendored tinyxml2 in a ros environment #1033
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
Closed
LucienMorey
wants to merge
4
commits into
BehaviorTree:master
from
LucienMorey:prefer_ros_dep_in_ament
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
433d898
default to not use vendored tinyxml2 in a ros environment
LucienMorey fd1171a
try build with the vendor dep too
LucienMorey 8752ed4
follow alternate lookup based on other pacakges
LucienMorey 4a78096
split handling for conan and ros
LucienMorey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could leave the option declaration above with the rest and on line 97 use a combination of set + force to disable it.
That way all related options are still on the same place.
Another possible approach is to move up the find ament call so it happens before we declare the options and then do something like `set(AMENT_MODE ament_cmake_FOUND)
And use that as the default value for the tinyxml option
The rationale is the same, keep all the options to opt out of vendored dependencies together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried playing around with something like the first option, but the cached option didn't behave the way I expected. I am only a ROS user and I wasn't sure how to make the change without potentially breaking someone else's workflow by always force overriding a cached thing.
Open to doing the second thing. It is the way it is to minimise the line diff. If the logic is acceptable I will squash the commits and reorder to move the option back to the same spot as the others.