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
6f11347a
Commit
6f11347a
authored
Nov 14, 2019
by
Matthew Dawkins
Committed by
Wenzel Jakob
Nov 14, 2019
Browse files
Prevent cmake error when prefix empty (#1986)
parent
a6355b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/FindPythonLibsNew.cmake
tools/FindPythonLibsNew.cmake
+3
-3
No files found.
tools/FindPythonLibsNew.cmake
View file @
6f11347a
...
...
@@ -140,9 +140,9 @@ list(GET _PYTHON_VERSION_LIST 1 PYTHON_VERSION_MINOR)
list
(
GET _PYTHON_VERSION_LIST 2 PYTHON_VERSION_PATCH
)
# Make sure all directory separators are '/'
string
(
REGEX REPLACE
"
\\\\
"
"/"
PYTHON_PREFIX
${
PYTHON_PREFIX
}
)
string
(
REGEX REPLACE
"
\\\\
"
"/"
PYTHON_INCLUDE_DIR
${
PYTHON_INCLUDE_DIR
}
)
string
(
REGEX REPLACE
"
\\\\
"
"/"
PYTHON_SITE_PACKAGES
${
PYTHON_SITE_PACKAGES
}
)
string
(
REGEX REPLACE
"
\\\\
"
"/"
PYTHON_PREFIX
"
${
PYTHON_PREFIX
}
"
)
string
(
REGEX REPLACE
"
\\\\
"
"/"
PYTHON_INCLUDE_DIR
"
${
PYTHON_INCLUDE_DIR
}
"
)
string
(
REGEX REPLACE
"
\\\\
"
"/"
PYTHON_SITE_PACKAGES
"
${
PYTHON_SITE_PACKAGES
}
"
)
if
(
CMAKE_HOST_WIN32 AND
NOT
(
MSYS OR MINGW
))
set
(
PYTHON_LIBRARY
...
...
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