Skip to content

Commit 9ff5de0

Browse files
committed
dependencies: bump pybind11 to v2.13.1
1 parent a9fbfc1 commit 9ff5de0

File tree

4 files changed

+15
-36
lines changed

4 files changed

+15
-36
lines changed

cmake/dependencies/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ if(BUILD_absl)
8282
set(ABSL_PROPAGATE_CXX_STD ON)
8383
set(ABSL_BUILD_TESTING OFF)
8484
FetchContent_Declare(
85-
abseil-cpp
85+
absl
8686
GIT_REPOSITORY "https://github.com/abseil/abseil-cpp.git"
8787
GIT_TAG "20240116.2"
8888
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/abseil-cpp-20240116.2.patch"
8989
)
90-
FetchContent_MakeAvailable(abseil-cpp)
90+
FetchContent_MakeAvailable(absl)
9191
list(POP_BACK CMAKE_MESSAGE_INDENT)
9292
message(CHECK_PASS "fetched")
9393
endif()
@@ -169,7 +169,7 @@ if(BUILD_PYTHON AND BUILD_pybind11)
169169
FetchContent_Declare(
170170
pybind11
171171
GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
172-
GIT_TAG "v2.12.0"
172+
GIT_TAG "v2.13.1"
173173
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11.patch"
174174
)
175175
FetchContent_MakeAvailable(pybind11)
@@ -183,7 +183,7 @@ if(BUILD_PYTHON AND BUILD_pybind11_abseil)
183183
FetchContent_Declare(
184184
pybind11_abseil
185185
GIT_REPOSITORY "https://github.com/pybind/pybind11_abseil.git" # 2024/01/11
186-
GIT_TAG "52f27398876a3177049977249e004770bd869e61"
186+
GIT_TAG "v202402.0"
187187
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11_abseil.patch"
188188
)
189189
FetchContent_MakeAvailable(pybind11_abseil)
@@ -197,7 +197,7 @@ if(BUILD_PYTHON AND BUILD_pybind11_protobuf)
197197
FetchContent_Declare(
198198
pybind11_protobuf
199199
GIT_REPOSITORY "https://github.com/pybind/pybind11_protobuf.git"
200-
GIT_TAG "3b11990a99dea5101799e61d98a82c4737d240cc" # 2024/01/04
200+
GIT_TAG "e90f33efeb2ae5c4e85ef83b22298f58e1e30894" # 2024/06/21
201201
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11_protobuf.patch"
202202
)
203203
FetchContent_MakeAvailable(pybind11_protobuf)

patches/protobuf-v27.2.patch

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,3 @@ index 9b51e9722..33c1021d4 100644
5454
${protobuf_BINARY_DIR}
5555
# Support #include-ing other top-level directories, i.e. upb_generator.
5656
${protobuf_SOURCE_DIR}
57-
diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake
58-
index 11c09b1bc..fdea9ce16 100644
59-
--- a/cmake/libprotobuf.cmake
60-
+++ b/cmake/libprotobuf.cmake
61-
@@ -28,6 +28,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
62-
endif()
63-
target_include_directories(libprotobuf PUBLIC
64-
$<BUILD_INTERFACE:${protobuf_SOURCE_DIR}/src>
65-
+ $<BUILD_INTERFACE:${protobuf_SOURCE_DIR}>
66-
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
67-
)
68-
target_link_libraries(libprotobuf PUBLIC ${protobuf_ABSL_USED_TARGETS})

patches/pybind11_abseil.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ index ceb65a8..e142837 100644
5555
include_directories(${TOP_LEVEL_DIR} ${pybind11_INCLUDE_DIRS})
5656
diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.txt
5757
new file mode 100644
58-
index 0000000..ffe4d38
58+
index 0000000..826eda8
5959
--- /dev/null
6060
+++ b/cmake/dependencies/CMakeLists.txt
6161
@@ -0,0 +1,15 @@
@@ -64,7 +64,7 @@ index 0000000..ffe4d38
6464
+set(ABSL_PROPAGATE_CXX_STD ON)
6565
+set(BUILD_TESTING OFF)
6666
+FetchContent_Declare(
67-
+ abseil-cpp
67+
+ absl
6868
+ URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.0.tar.gz
6969
+ URL_HASH
7070
+ SHA256=59d2976af9d6ecf001a81a35749a6e551a335b949d34918cfade07737b9d93c5)
@@ -73,9 +73,9 @@ index 0000000..ffe4d38
7373
+ pybind11
7474
+ URL https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz)
7575
+
76-
+FetchContent_MakeAvailable(abseil-cpp pybind11)
76+
+FetchContent_MakeAvailable(absl pybind11)
7777
diff --git a/pybind11_abseil/BUILD b/pybind11_abseil/BUILD
78-
index 4cff8b7..33e614a 100644
78+
index 791c245..33e614a 100644
7979
--- a/pybind11_abseil/BUILD
8080
+++ b/pybind11_abseil/BUILD
8181
@@ -25,43 +25,39 @@ pybind_library(
@@ -90,7 +90,7 @@ index 4cff8b7..33e614a 100644
9090
visibility = ["//visibility:public"],
9191
deps = [
9292
"@com_google_absl//absl/status",
93-
- "@local_config_python//:python_headers", # buildcleaner: keep
93+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
9494
],
9595
)
9696

@@ -101,7 +101,7 @@ index 4cff8b7..33e614a 100644
101101
visibility = ["//visibility:private"],
102102
deps = [
103103
":ok_status_singleton_lib",
104-
- "@local_config_python//:python_headers", # buildcleaner: keep
104+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
105105
],
106106
)
107107

@@ -113,7 +113,7 @@ index 4cff8b7..33e614a 100644
113113
- linkshared = 1,
114114
deps = [
115115
":ok_status_singleton_pyinit_google3",
116-
- "@local_config_python//:python_headers", # buildcleaner: keep
116+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
117117
],
118118
)
119119

@@ -149,7 +149,7 @@ index 4cff8b7..33e614a 100644
149149
- linkshared = 1,
150150
deps = [
151151
":status_pyinit_google3",
152-
- "@local_config_python//:python_headers", # buildcleaner: keep
152+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
153153
],
154154
)
155155

patches/pybind11_protobuf.patch

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.t
6060
index 111b34f..f78e946 100644
6161
--- a/cmake/dependencies/CMakeLists.txt
6262
+++ b/cmake/dependencies/CMakeLists.txt
63-
@@ -7,7 +7,7 @@ if(NOT absl_FOUND)
64-
set(ABSL_PROPAGATE_CXX_STD ON)
65-
set(ABSL_ENABLE_INSTALL ON)
66-
FetchContent_Declare(
67-
- absl
68-
+ abseil-cpp
69-
GIT_REPOSITORY ${_absl_repository}
70-
GIT_TAG ${_absl_tag})
71-
endif()
7263
@@ -35,17 +35,17 @@ if(NOT pybind11_FOUND)
7364
endif()
7465

@@ -77,11 +68,11 @@ index 111b34f..f78e946 100644
7768
+# Make dependencies available
7869

7970
-if(NOT absl_FOUND)
80-
+if(NOT abseil-cpp_FOUND)
71+
+if(NOT absl_FOUND)
8172
message(CHECK_START "Fetching Abseil-cpp")
8273
list(APPEND CMAKE_MESSAGE_INDENT " ")
8374
- FetchContent_MakeAvailable(absl)
84-
+ FetchContent_MakeAvailable(abseil-cpp)
75+
+ FetchContent_MakeAvailable(absl)
8576
list(POP_BACK CMAKE_MESSAGE_INDENT)
8677
message(CHECK_PASS "fetched")
8778
endif()

0 commit comments

Comments
 (0)