Skip to content

Commit

Permalink
Merge pull request #877 from robotology/fix876
Browse files Browse the repository at this point in the history
Do not call find_package(pybind11 QUIET) if IDYNTREE_USES_PYTHON_PYBIND11 is OFF
  • Loading branch information
traversaro authored Jun 12, 2021
2 parents 8bf1795 + 91f6d21 commit ab93364
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,9 @@ endif()


option(IDYNTREE_USES_PYTHON_PYBIND11 "Create iDynTree Python bindings using pybind11" FALSE)
find_package(pybind11 QUIET)
if (IDYNTREE_USES_PYTHON_PYBIND11)
if (${pybind11_FOUND})
add_subdirectory(pybind11)
else()
MESSAGE(FATAL_ERROR "pybind11 not found, impossible to generate iDynTree pybind11 bindings.")
endif()
find_package(pybind11 REQUIRED)
add_subdirectory(pybind11)
endif()

# Install main __init__.py file.
Expand Down

0 comments on commit ab93364

Please sign in to comment.