Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pybind_interface/GetPybind11.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
include(FetchContent)

set(MIN_PYBIND_VERSION "2.13.6")

# Suppress warning "Compatibility with CMake < 3.10 will be removed ..." coming
# from Pybind11. Not ideal, but avoids wasting time trying to find the cause.
# TODO(mhucka): remove the settings when pybind11 updates its CMake files
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "Disable CMake deprecation warnings" FORCE)

FetchContent_Declare(
pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11
GIT_TAG "v${MIN_PYBIND_VERSION}"
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(pybind11)

set(CMAKE_WARN_DEPRECATED ON CACHE BOOL "Reenable CMake deprecation warnings" FORCE)
Loading