pybind11
pybind11 copied to clipboard
fix(cmake): allow forcing old FindPython
Description
Currently, if for some reason the new FindPython triggers, like if Python has been found the new way, you can't get pybind11 to use the old mechanism. If PYBIND11_FINDPYTHON is both defined and falsy, let's use that to force it off.
Suggested changelog entry:
* Setting `PYBIND11_FINDPYTHON` to OFF will force the old FindPythonLibs mechanism to be used.