@@ -58,12 +58,11 @@ through `find_package(pybind11 ... CONFIG ...)`. See the `Config file
58
58
<https://github.com/pybind/pybind11/blob/master/tools/pybind11Config.cmake.in> `_
59
59
docstring for details of relevant CMake variables.
60
60
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 ]_ .
67
66
68
67
.. code-block :: cmake
69
68
@@ -76,15 +75,15 @@ working example can be found at [test_installed_module]_ .
76
75
.. [test_installed_module ] https://github.com/pybind/pybind11/blob/master/tests/test_installed_module/CMakeLists.txt
77
76
78
77
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 ]_ .
88
87
89
88
.. code-block :: cmake
90
89
0 commit comments