[BUILD/BUG] pybind11 requirement
Closed this issue · 2 comments
OgreTransporter commented
PR #4124 added this line:
OpenImageIO/src/cmake/externalpackages.cmake
Line 162 in 01c9163
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 ()
lgritz commented
Quite right, thanks for the suggestion