Skip to content

Commit f4b81b3

Browse files
loriabwjakob
authored andcommitted
reflow some docs paragraphs
1 parent eb09af5 commit f4b81b3

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

docs/compiling.rst

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ through `find_package(pybind11 ... CONFIG ...)`. See the `Config file
5858
<https://github.com/pybind/pybind11/blob/master/tools/pybind11Config.cmake.in>`_
5959
docstring for details of relevant CMake variables.
6060

61-
Once detected, and after setting any variables to guide Python and C++
62-
standard detection, the aforementioned ``pybind11_add_module``
63-
wrapper to ``add_library`` can
64-
be employed as described above (after ``include(pybind11Tools)``). This
65-
procedure is available when using CMake >= 2.8.12. A
66-
working example can be found at [test_installed_module]_ .
61+
Once detected, and after setting any variables to guide Python and
62+
C++ standard detection, the aforementioned ``pybind11_add_module``
63+
wrapper to ``add_library`` can be employed as described above (after
64+
``include(pybind11Tools)``). This procedure is available when using CMake
65+
>= 2.8.12. A working example can be found at [test_installed_module]_ .
6766

6867
.. code-block:: cmake
6968
@@ -76,15 +75,15 @@ working example can be found at [test_installed_module]_ .
7675
.. [test_installed_module] https://github.com/pybind/pybind11/blob/master/tests/test_installed_module/CMakeLists.txt
7776
7877
When using a version of CMake greater than 3.0, pybind11 can
79-
additionally be used as a special *interface library* following the call
80-
to ``find_package``. CMake
81-
variables to guide Python and C++ standard detection should be set
82-
*before* ``find_package``. When ``find_package`` returns, the target
83-
``pybind11::pybind11`` is available with pybind11 headers, Python headers
84-
and libraries as needed, and C++ compile definitions attached. This
85-
target is suitable for linking to an independently constructed (through
86-
``add_library``, not ``pybind11_add_module``) target in the consuming
87-
project. A working example can be found at [test_installed_target]_ .
78+
additionally be used as a special *interface library* following the
79+
call to ``find_package``. CMake variables to guide Python and C++
80+
standard detection should be set *before* ``find_package``. When
81+
``find_package`` returns, the target ``pybind11::pybind11`` is
82+
available with pybind11 headers, Python headers and libraries as
83+
needed, and C++ compile definitions attached. This target is suitable
84+
for linking to an independently constructed (through ``add_library``,
85+
not ``pybind11_add_module``) target in the consuming project. A working
86+
example can be found at [test_installed_target]_ .
8887

8988
.. code-block:: cmake
9089

0 commit comments

Comments
 (0)