Skip to content

Commit 7e0509a

Browse files
committed
cmake: Fix math_opt's elemental python binding
1 parent 94034cc commit 7e0509a

4 files changed

Lines changed: 476 additions & 16 deletions

File tree

cmake/dependencies/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,16 @@ if(BUILD_PYTHON)
203203
FetchContent_Declare(
204204
pybind11
205205
GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
206-
GIT_TAG "v2.13.6"
207-
GIT_SHALLOW TRUE
208-
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11.patch"
206+
#GIT_TAG "master" # COMPILE FAIL
207+
#GIT_TAG "f365314" # 2025/03/24 COMPILE FAIL
208+
#GIT_TAG "48eb5ad" # 2025/03/23 TEST PASS
209+
# ...
210+
#GIT_TAG "a1d00916" # 2024/08/15 TEST PASS
211+
#GIT_TAG "bd5951b6" # 2024/08/14 TEST FAIL
212+
GIT_TAG "v2.13.6" # TEST PASS with a1d00916 patch apply
213+
#GIT_SHALLOW TRUE
214+
PATCH_COMMAND git apply --ignore-whitespace
215+
"${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11-v2.13.6.patch"
209216
)
210217
FetchContent_MakeAvailable(pybind11)
211218
list(POP_BACK CMAKE_MESSAGE_INDENT)

patches/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ exports_files([
1515
"abseil-cpp-20250127.1.patch",
1616
"highs-v1.10.patch",
1717
"protobuf-v30.2.patch",
18+
"pybind11_bazel.patch",
1819
"pybind11_abseil.patch",
1920
"pybind11_protobuf.patch",
20-
"pybind11.patch",
21+
"pybind11-v2.13.6.patch",
2122
"scip-v922.patch",
2223
])

0 commit comments

Comments
 (0)