Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:birdwatcher:OpenWebUI
onnxruntime
onnxruntime-system-protobuf.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File onnxruntime-system-protobuf.patch of Package onnxruntime
diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake index 775576a7..b27f14ec 100644 --- a/cmake/external/onnxruntime_external_deps.cmake +++ b/cmake/external/onnxruntime_external_deps.cmake @@ -212,30 +212,7 @@ else() endif() #Protobuf depends on absl and utf8_range -FetchContent_Declare( - Protobuf - URL ${DEP_URL_protobuf} - URL_HASH SHA1=${DEP_SHA1_protobuf} - PATCH_COMMAND ${ONNXRUNTIME_PROTOBUF_PATCH_COMMAND} - FIND_PACKAGE_ARGS 3.21.12 NAMES Protobuf -) - -set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests" FORCE) -#TODO: we'd better to turn the following option off. However, it will cause -# ".\build.bat --config Debug --parallel --skip_submodule_sync --update" fail with an error message: -# install(EXPORT "ONNXTargets" ...) includes target "onnx_proto" which requires target "libprotobuf-lite" that is -# not in any export set. -#set(protobuf_INSTALL OFF CACHE BOOL "Install protobuf binaries and files" FORCE) -set(protobuf_USE_EXTERNAL_GTEST ON CACHE BOOL "" FORCE) - -if (ANDROID) - set(protobuf_WITH_ZLIB OFF CACHE BOOL "Build protobuf with zlib support" FORCE) -endif() - -if (onnxruntime_DISABLE_RTTI) - set(protobuf_DISABLE_RTTI ON CACHE BOOL "Remove runtime type information in the binaries" FORCE) -endif() - +find_package(Protobuf REQUIRED) include(protobuf_function) #protobuf end
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor