Skip to content

Commit

Permalink
Merge pull request #1812 from borglab/set-pybind11-path
Browse files Browse the repository at this point in the history
Use bundled `pybind11` for Python wrapper
  • Loading branch information
dellaert authored Aug 26, 2024
2 parents 38a7ad7 + e58a5c4 commit 55e3ac5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
endif()

# Prefer system pybind11 first, if not found, rely on bundled version:
find_package(pybind11 CONFIG QUIET)
if (NOT pybind11_FOUND)
add_subdirectory(${PROJECT_SOURCE_DIR}/wrap/pybind11 pybind11)
endif()
# Use bundled pybind11 version
add_subdirectory(${PROJECT_SOURCE_DIR}/wrap/pybind11 pybind11)

# Set the wrapping script variable
set(PYBIND_WRAP_SCRIPT "${PROJECT_SOURCE_DIR}/wrap/scripts/pybind_wrap.py")
Expand Down

0 comments on commit 55e3ac5

Please sign in to comment.