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
d4db8bc4
Commit
d4db8bc4
authored
Jan 20, 2016
by
Wenzel Jakob
Browse files
minor cmake doc improvements
parent
b670b770
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
docs/cmake.rst
docs/cmake.rst
+3
-4
No files found.
docs/cmake.rst
View file @
d4db8bc4
...
...
@@ -29,15 +29,14 @@ and that the pybind11 repository is located in a subdirectory named :file:`pybin
# Try to autodetect Python (can be overridden manually if needed)
set(Python_ADDITIONAL_VERSIONS 3.4 3.5 3.6 3.7)
if (NOT ${
PYBIND11
_PYTHON_VERSION} STREQUAL "")
find_package(PythonLibs ${
PYBIND11
_PYTHON_VERSION} EXACT)
if (NOT ${
EXAMPLE
_PYTHON_VERSION} STREQUAL "")
find_package(PythonLibs ${
EXAMPLE
_PYTHON_VERSION} EXACT)
if (NOT PythonLibs_FOUND)
find_package(PythonLibs ${
PYBIND11
_PYTHON_VERSION} REQUIRED)
find_package(PythonLibs ${
EXAMPLE
_PYTHON_VERSION} REQUIRED)
endif()
else()
find_package(PythonLibs REQUIRED)
endif()
find_package(PythonInterp ${PYTHONLIBS_VERSION_STRING} EXACT REQUIRED)
# Uncomment the following line if you will also require a matching Python interpreter
# find_package(PythonInterp ${PYTHONLIBS_VERSION_STRING} EXACT REQUIRED)
...
...
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