Merge pull request #1812 from borglab/set-pybind11-path
Use bundled `pybind11` for Python wrapperrelease/4.3a0
commit
55e3ac5e0e
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue