mirror of
https://github.com/termux/termux-packages.git
synced 2025-09-02 12:20:43 +00:00
27 lines
813 B
Diff
27 lines
813 B
Diff
--- a/cmake/external/onnxruntime_external_deps.cmake
|
|
+++ b/cmake/external/onnxruntime_external_deps.cmake
|
|
@@ -211,14 +211,7 @@
|
|
set(ONNXRUNTIME_PROTOBUF_PATCH_COMMAND "")
|
|
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 NAMES Protobuf protobuf
|
|
-)
|
|
+find_package(Protobuf REQUIRED)
|
|
|
|
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
|
|
@@ -239,7 +232,6 @@
|
|
include(protobuf_function)
|
|
#protobuf end
|
|
|
|
-onnxruntime_fetchcontent_makeavailable(Protobuf)
|
|
if(Protobuf_FOUND)
|
|
message(STATUS "Protobuf version: ${Protobuf_VERSION}")
|
|
else()
|