From 05dc1165a5e03d35cfe573c5a7d0dff7bcb22da5 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 8 Dec 2022 16:14:16 -0800 Subject: [PATCH] Add protobuf version constraint (#13870) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To fix a build error: /home/xxxxxxxxxxxxx/onnxruntime/build/Linux/Debug/tensorboard/compat/proto/cost_graph.pb.cc:17:8: error: ‘PROTOBUF_INTERNAL_EXPORT_tensorboard_2fcompat_2fproto_2ftensor_5fshape_2eproto’ does not name a type 17 | extern PROTOBUF_INTERNAL_EXPORT_tensorboard_2fcompat_2fproto_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorboard_2fcompat_2fproto_2ftensor_5fshape_2eproto; --- cmake/external/onnxruntime_external_deps.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake index 6e59bc1f40..fc2fdf4cf5 100644 --- a/cmake/external/onnxruntime_external_deps.cmake +++ b/cmake/external/onnxruntime_external_deps.cmake @@ -113,7 +113,7 @@ FetchContent_Declare( URL_HASH SHA1=${DEP_SHA1_protobuf} SOURCE_SUBDIR cmake PATCH_COMMAND ${ONNXRUNTIME_PROTOBUF_PATCH_COMMAND} - FIND_PACKAGE_ARGS NAMES Protobuf + FIND_PACKAGE_ARGS 3.18.0 NAMES Protobuf ) set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests" FORCE) if (CMAKE_SYSTEM_NAME STREQUAL "Android")