Skip to content

Commit e496ef9

Browse files
committed
Updates pybind11 to 3.0.1. Fixes issue #28.
1 parent d737def commit e496ef9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# https://stackoverflow.com/questions/51907755/building-a-pybind11-module-with-cpp-and-cuda-sources-using-cmake
22

33
cmake_minimum_required(VERSION 3.15)
4+
set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
45

56
message(STATUS "Found Python prefix ${PYTHON_PREFIX}")
67
list(PREPEND CMAKE_PREFIX_PATH "${PYTHON_PREFIX}")
78

89
project(python-samplerate)
910
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1011

11-
cmake_policy(SET CMP0094 NEW)
12+
cmake_policy(SET CMP0148 NEW)
1213

1314
# adds the external dependencies
1415
add_subdirectory(external)

external/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include(FetchContent)
44
FetchContent_Declare(
55
pybind11
66
GIT_REPOSITORY https://github.com/pybind/pybind11
7-
GIT_TAG 5b0a6fc2017fcc176545afe3e09c9f9885283242 # 2.10.4
7+
GIT_TAG f5fbe867d2d26e4a0a9177a51f6e568868ad3dc8 # 3.0.1
88
)
99

1010
FetchContent_MakeAvailable(pybind11)

0 commit comments

Comments
 (0)