Skip to content

Commit 55e3ac5

Browse files
authored
Merge pull request #1812 from borglab/set-pybind11-path
Use bundled `pybind11` for Python wrapper
2 parents 38a7ad7 + e58a5c4 commit 55e3ac5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

python/CMakeLists.txt

+2-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ if(POLICY CMP0057)
2929
cmake_policy(SET CMP0057 NEW)
3030
endif()
3131

32-
# Prefer system pybind11 first, if not found, rely on bundled version:
33-
find_package(pybind11 CONFIG QUIET)
34-
if (NOT pybind11_FOUND)
35-
add_subdirectory(${PROJECT_SOURCE_DIR}/wrap/pybind11 pybind11)
36-
endif()
32+
# Use bundled pybind11 version
33+
add_subdirectory(${PROJECT_SOURCE_DIR}/wrap/pybind11 pybind11)
3734

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

0 commit comments

Comments
 (0)