mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-23 16:29:12 +00:00
fix: FindPython by default logic error (#5561)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -184,8 +184,11 @@ if(PYBIND11_NOPYTHON)
|
|||||||
# We won't use new FindPython if PYBIND11_FINDPYTHON is defined and falselike
|
# We won't use new FindPython if PYBIND11_FINDPYTHON is defined and falselike
|
||||||
# Otherwise, we use if FindPythonLibs is missing or if FindPython was already used
|
# Otherwise, we use if FindPythonLibs is missing or if FindPython was already used
|
||||||
elseif(
|
elseif(
|
||||||
(NOT DEFINED PYBIND11_FINDPYTHON OR PYBIND11_FINDPYTHON)
|
(NOT DEFINED PYBIND11_FINDPYTHON
|
||||||
|
OR PYBIND11_FINDPYTHON STREQUAL "COMPAT"
|
||||||
|
OR PYBIND11_FINDPYTHON)
|
||||||
AND (_pybind11_missing_old_python STREQUAL "NEW"
|
AND (_pybind11_missing_old_python STREQUAL "NEW"
|
||||||
|
OR PYBIND11_FINDPYTHON STREQUAL "COMPAT"
|
||||||
OR PYBIND11_FINDPYTHON
|
OR PYBIND11_FINDPYTHON
|
||||||
OR Python_FOUND
|
OR Python_FOUND
|
||||||
OR Python3_FOUND
|
OR Python3_FOUND
|
||||||
|
|||||||
Reference in New Issue
Block a user