Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "third_party/onnx"]
path = third_party/onnx
url = https://github.com/onnx/onnx.git
[submodule "third_party/protobuf"]
path = third_party/protobuf
url = https://github.com/protocolbuffers/protobuf.git
[submodule "third_party/nanobind"]
path = third_party/nanobind
url = https://github.com/wjakob/nanobind.git
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ option(ONNX_OPT_USE_SYSTEM_PROTOBUF "" OFF)
if(NOT ONNX_OPT_USE_SYSTEM_PROTOBUF)
option(protobuf_BUILD_TESTS "" OFF)
option(protobuf_MSVC_STATIC_RUNTIME "" ${ONNX_USE_MSVC_STATIC_RUNTIME})
add_subdirectory_if_no_target(${PROJECT_SOURCE_DIR}/third_party/protobuf libprotobuf)
set(protobuf_FORCE_FETCH_DEPENDENCIES ON)
set(ONNX_BUILD_CUSTOM_PROTOBUF ON)
endif()


Expand Down Expand Up @@ -71,7 +72,6 @@ if(ONNX_BUILD_PYTHON)
Python 3
REQUIRED COMPONENTS Interpreter Development.Module
OPTIONAL_COMPONENTS Development.SABIModule)
add_subdirectory(third_party/nanobind EXCLUDE_FROM_ALL)
nanobind_add_module(onnx_opt_cpp2py_export "onnxoptimizer/cpp2py_export.cc" STABLE_ABI)
target_link_libraries(onnx_opt_cpp2py_export PRIVATE onnx_optimizer)
endif()
Expand Down
1 change: 0 additions & 1 deletion third_party/nanobind
Submodule nanobind deleted from cf405a
1 change: 0 additions & 1 deletion third_party/protobuf
Submodule protobuf deleted from f34bc4
Loading