cmake: support system-wide pybind11

Original behavior remains.
This commit is contained in:
Viktor Sonesten
2023-11-12 12:04:10 +01:00
parent 8f9c690c85
commit 0ea316ed71
+2 -1
View File
@@ -180,9 +180,10 @@ findorfetch(
) )
# ==================== PYBIND11 ================================================ # ==================== PYBIND11 ================================================
option(MUJOCO_PYTHON_USE_SYSTEM_PYBIND11 "Use installed pybind11 version." OFF)
findorfetch( findorfetch(
USE_SYSTEM_PACKAGE USE_SYSTEM_PACKAGE
OFF MUJOCO_PYTHON_USE_SYSTEM_PYBIND11
PACKAGE_NAME PACKAGE_NAME
pybind11 pybind11
LIBRARY_NAME LIBRARY_NAME