always use bundled pybind11 inside wrap
parent
46765ecfa6
commit
f2d69ed697
|
@ -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
|
||||
find_package(pybind11 CONFIG QUIET PATHS "${PROJECT_SOURCE_DIR}/wrap/pybind11")
|
||||
|
||||
# Set the wrapping script variable
|
||||
set(PYBIND_WRAP_SCRIPT "${PROJECT_SOURCE_DIR}/wrap/scripts/pybind_wrap.py")
|
||||
|
|
Loading…
Reference in New Issue