Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
1377fbf7
Commit
1377fbf7
authored
Oct 24, 2018
by
Ryota Suzuki
Committed by
Wenzel Jakob
Oct 24, 2018
Browse files
Fix unintentional escaping of character on Windows (#1574) (#1575)
parent
111b25b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tools/FindPythonLibsNew.cmake
tools/FindPythonLibsNew.cmake
+3
-0
No files found.
tools/FindPythonLibsNew.cmake
View file @
1377fbf7
...
...
@@ -100,6 +100,9 @@ if(NOT _PYTHON_SUCCESS MATCHES 0)
endif
()
# Convert the process output into a list
if
(
WIN32
)
string
(
REGEX REPLACE
"
\\\\
"
"/"
_PYTHON_VALUES
${
_PYTHON_VALUES
}
)
endif
()
string
(
REGEX REPLACE
";"
"
\\\\
;"
_PYTHON_VALUES
${
_PYTHON_VALUES
}
)
string
(
REGEX REPLACE
"
\n
"
";"
_PYTHON_VALUES
${
_PYTHON_VALUES
}
)
list
(
GET _PYTHON_VALUES 0 _PYTHON_VERSION_LIST
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment