AcademySoftwareFoundation/OpenImageIO

[BUILD/BUG] pybind11 requirement

Closed this issue · 2 comments

PR #4124 added this line:

checked_find_package (pybind11 REQUIRED VERSION_MIN 2.4.2)

This line only makes sense if Python has also been found, i.e. if you are building OIIO with Python. If no Python is used, this line will of course generate an error in CMake. And Python is not a mandatory requirement.

Fix:

if (USE_PYTHON)
    checked_find_package (pybind11 REQUIRED VERSION_MIN 2.4.2)
endif ()

Quite right, thanks for the suggestion

Fix posted as PR #4136