@@ -24,6 +24,11 @@ pybind11 v3.0 are not ABI-compatible with those built using v2.12. To ensure
24
24
cross-extension-module compatibility, it is recommended to rebuild all
25
25
pybind11-based extensions with v3.0.
26
26
27
+ CMake support now defaults to the modern FindPython module. If you haven't
28
+ moved, we do some some backward compatibility ``PYTHON_* `` variables, but
29
+ please update to using ``Python_* `` variables (and setting ``PYTHON_* ``
30
+ variables will not affect the build anymore).
31
+
27
32
A major new feature in this release is the integration of
28
33
``py::smart_holder ``, which improves support for ``std::unique_ptr ``
29
34
and ``std::shared_ptr ``, resolving several long-standing issues. See
@@ -76,6 +81,11 @@ you may incrementally adopt new features where appropriate:
76
81
There is no urgency to refactor existing, working bindings — adopt new
77
82
features as the need arises or as part of ongoing maintenance efforts.
78
83
84
+ If you are using CMake, update to FindPython variables (mostly changing
85
+ variables from ``PYTHON_* `` -> ``Python_* ``). You should see if you can use
86
+ ``set(PYBIND11_FINDPYTHON ON) ``, which has been supported for years and will
87
+ avoid setting the compatibly mode variables.
88
+
79
89
Potential stumbling blocks when migrating to v3.0
80
90
-------------------------------------------------
81
91
0 commit comments