Repository navigation
Make ament_include_directories_order a function to allow paths with backslashes on windows. - #371
Merged
Merged
Conversation
Signed-off-by: Shane Loretz <[email protected]>
Contributor
Author
Signed-off-by: Shane Loretz <[email protected]>
Contributor
Author
Signed-off-by: Shane Loretz <[email protected]>
sloretz
marked this pull request as draft
December 24, 2021 01:32
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Contributor
Author
|
Switching to a CMake function did the trick 🎉 CI re-re-run |
sloretz
marked this pull request as ready for review
December 29, 2021 19:55
hidmic
approved these changes
Jan 3, 2022
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.
This fixes a CMake error that can happen when include directory paths have back slashes in them on Windows.
I attempted to use answers from a few SO posts: https://stackoverflow.com/questions/13737370/cmake-error-invalid-escape-sequence-u , but replacing the slashes can't be done inside the macro. The problem is
ARGNisn't a real variable in a CMake macro. Instead it gets substituted as a string. This means the back slashes in the path get evaluated as if the un-escaped string was typed in a CMake file. Making the macro a function should resolve this problem.This PR is required to fix ros2/rosidl_python#149 , which itself is required to fix ros2/rcl_interfaces#133