Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
f4b81b36
Commit
f4b81b36
authored
Dec 13, 2016
by
Lori A. Burns
Committed by
Wenzel Jakob
Dec 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflow some docs paragraphs
parent
eb09af5e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
docs/compiling.rst
+14
-15
No files found.
docs/compiling.rst
View file @
f4b81b36
...
@@ -58,12 +58,11 @@ through `find_package(pybind11 ... CONFIG ...)`. See the `Config file
...
@@ -58,12 +58,11 @@ through `find_package(pybind11 ... CONFIG ...)`. See the `Config file
<https://github.com/pybind/pybind11/blob/master/tools/pybind11Config.cmake.in>`_
<https://github.com/pybind/pybind11/blob/master/tools/pybind11Config.cmake.in>`_
docstring for details of relevant CMake variables.
docstring for details of relevant CMake variables.
Once detected, and after setting any variables to guide Python and C++
Once detected, and after setting any variables to guide Python and
standard detection, the aforementioned ``pybind11_add_module``
C++ standard detection, the aforementioned ``pybind11_add_module``
wrapper to ``add_library`` can
wrapper to ``add_library`` can be employed as described above (after
be employed as described above (after ``include(pybind11Tools)``). This
``include(pybind11Tools)``). This procedure is available when using CMake
procedure is available when using CMake >= 2.8.12. A
>= 2.8.12. A working example can be found at [test_installed_module]_ .
working example can be found at [test_installed_module]_ .
.. code-block:: cmake
.. code-block:: cmake
...
@@ -76,15 +75,15 @@ working example can be found at [test_installed_module]_ .
...
@@ -76,15 +75,15 @@ working example can be found at [test_installed_module]_ .
.. [test_installed_module] https://github.com/pybind/pybind11/blob/master/tests/test_installed_module/CMakeLists.txt
.. [test_installed_module] https://github.com/pybind/pybind11/blob/master/tests/test_installed_module/CMakeLists.txt
When using a version of CMake greater than 3.0, pybind11 can
When using a version of CMake greater than 3.0, pybind11 can
additionally be used as a special *interface library* following the
call
additionally be used as a special *interface library* following the
to ``find_package``. CMake
call to ``find_package``. CMake variables to guide Python and C++
variables to guide Python and C++ standard detection should be set
standard detection should be set *before* ``find_package``. When
*before* ``find_package``. When ``find_package`` returns, the target
``find_package`` returns, the target ``pybind11::pybind11`` is
``pybind11::pybind11`` is available with pybind11 headers, Python header
s
available with pybind11 headers, Python headers and libraries a
s
and libraries as needed, and C++ compile definitions attached. This
needed, and C++ compile definitions attached. This target is suitable
target is suitable for linking to an independently constructed (through
for linking to an independently constructed (through ``add_library``,
``add_library``, not ``pybind11_add_module``) target in the consum
ing
not ``pybind11_add_module``) target in the consuming project. A work
ing
project. A working
example can be found at [test_installed_target]_ .
example can be found at [test_installed_target]_ .
.. code-block:: cmake
.. code-block:: cmake
...
...
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