mirror of
https://github.com/pybind/pybind11.git
synced 2025-03-24 01:26:42 +00:00
fix: FindPython by default logic error (#5561)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
parent
655c60d84c
commit
bb504dd809
@ -184,8 +184,11 @@ if(PYBIND11_NOPYTHON)
|
||||
# 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
|
||||
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"
|
||||
OR PYBIND11_FINDPYTHON STREQUAL "COMPAT"
|
||||
OR PYBIND11_FINDPYTHON
|
||||
OR Python_FOUND
|
||||
OR Python3_FOUND
|
||||
|
Loading…
Reference in New Issue
Block a user