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

[Windows] Use raw string literal to accommodate escape characters #1117

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Aug 18, 2020

On Windows, CMake will use the backslash \ as the default character to compose the prefix path. However, when it is passed to the template, the \ means differently as the escape character in Python. Therefore, a wrong string will be used in such case.

Currently, to workaround it, one needs to explicitly define the prefix path like set CMAKE_PREFIX_PATH=c:/opt/ros/noetic.

This pull request is to use the raw string literal to remove the need of using forward slash in such case, so the default CMake would work directly with catkin.

@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 7fd1b42 into ros:noetic-devel Aug 18, 2020
dirk-thomas pushed a commit that referenced this pull request Aug 26, 2020
@dirk-thomas
Copy link
Member

Cherry-picked to kinetic-devel in 3133221.

seanyen added a commit to ms-iot/catkin that referenced this pull request Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants