Merge pull request #1812 from borglab/set-pybind11-path

Use bundled `pybind11` for Python wrapper
release/4.3a0
Frank Dellaert 2024-08-25 18:49:58 -07:00 committed by GitHub
commit 55e3ac5e0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 5 deletions

View File

@ -29,11 +29,8 @@ if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW) cmake_policy(SET CMP0057 NEW)
endif() endif()
# Prefer system pybind11 first, if not found, rely on bundled version: # Use bundled pybind11 version
find_package(pybind11 CONFIG QUIET) add_subdirectory(${PROJECT_SOURCE_DIR}/wrap/pybind11 pybind11)
if (NOT pybind11_FOUND)
add_subdirectory(${PROJECT_SOURCE_DIR}/wrap/pybind11 pybind11)
endif()
# Set the wrapping script variable # Set the wrapping script variable
set(PYBIND_WRAP_SCRIPT "${PROJECT_SOURCE_DIR}/wrap/scripts/pybind_wrap.py") set(PYBIND_WRAP_SCRIPT "${PROJECT_SOURCE_DIR}/wrap/scripts/pybind_wrap.py")