Skip to content

Commit

Permalink
Update pybind so it works with newer python versions (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorgve committed Jul 16, 2023
1 parent 9e2ac3b commit 415c083
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/custom/fetch_pybind11.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
find_package(pybind11 2.6 CONFIG QUIET)
find_package(pybind11 2.9 CONFIG QUIET)

set(PYBIND11_CPP_STANDARD "-std=c++${CMAKE_CXX_STANDARD}")

Expand All @@ -10,9 +10,8 @@ else()
FetchContent_Declare(pybind11
QUIET
URL
https://github.com/pybind/pybind11/archive/v2.7.1.tar.gz
https://github.com/pybind/pybind11/archive/v2.10.0.tar.gz
)
set(PYBIND11_TEST OFF CACHE BOOL "")
FetchContent_MakeAvailable(pybind11)
endif()

0 comments on commit 415c083

Please sign in to comment.