pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

fix(cmake): allow forcing old FindPython

Open henryiii opened this issue 1 year ago • 0 comments

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.

henryiii avatar Feb 27 '24 16:02 henryiii