Skip to content

Commit d9f65c9

Browse files
authored
Update pybind11 to support numpy 2.0 (#1493)
1 parent d9c586c commit d9f65c9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cmake/pybind11.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
function(download_pybind11)
22
include(FetchContent)
33

4-
set(pybind11_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2.tar.gz")
5-
set(pybind11_URL2 "https://hf-mirror.com/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/pybind11-2.10.2.tar.gz")
6-
set(pybind11_HASH "SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae")
4+
set(pybind11_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.12.0.tar.gz")
5+
set(pybind11_URL2 "https://hf-mirror.com/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/pybind11-2.12.0.tar.gz")
6+
set(pybind11_HASH "SHA256=bf8f242abd1abcd375d516a7067490fb71abd79519a282d22b6e4d19282185a7")
77

88
# If you don't have access to the Internet,
99
# please pre-download pybind11
1010
set(possible_file_locations
11-
$ENV{HOME}/Downloads/pybind11-2.10.2.tar.gz
12-
${CMAKE_SOURCE_DIR}/pybind11-2.10.2.tar.gz
13-
${CMAKE_BINARY_DIR}/pybind11-2.10.2.tar.gz
14-
/tmp/pybind11-2.10.2.tar.gz
15-
/star-fj/fangjun/download/github/pybind11-2.10.2.tar.gz
11+
$ENV{HOME}/Downloads/pybind11-2.12.0.tar.gz
12+
${CMAKE_SOURCE_DIR}/pybind11-2.12.0.tar.gz
13+
${CMAKE_BINARY_DIR}/pybind11-2.12.0.tar.gz
14+
/tmp/pybind11-2.12.0.tar.gz
15+
/star-fj/fangjun/download/github/pybind11-2.12.0.tar.gz
1616
)
1717

1818
foreach(f IN LISTS possible_file_locations)

0 commit comments

Comments
 (0)