always use bundled pybind11 inside wrap

release/4.3a0
Varun Agrawal 2024-08-25 14:47:14 -04:00
parent 46765ecfa6
commit f2d69ed697
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) find_package(pybind11 CONFIG QUIET PATHS "${PROJECT_SOURCE_DIR}/wrap/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")