Skip to content

Commit

Permalink
Follow upstream instructions to include system pybind11 (#566)
Browse files Browse the repository at this point in the history
The previous way doesn't work with Arch Linux's pybind11, but the official recommended way does.

Ref: https://pybind11.readthedocs.io/en/latest/cmake/index.html
  • Loading branch information
felixonmars authored Mar 5, 2021
1 parent 736b93d commit b0ea9ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ endif()

if (BUILD_PYTHON)
if(USE_SYSTEM_PYBIND11)
include(pybind11Config)
include(pybind11Common)
include(pybind11Tools)
find_package(pybind11 CONFIG)
else()
add_subdirectory(deps/pybind11-2.5.0)
endif()
Expand Down

0 comments on commit b0ea9ef

Please sign in to comment.