[vcpkg baseline][onnx] Fix find dependency protobuf (#23411)

* [onnx] Fix find dependency protobuf

* version
This commit is contained in:
Jack·Boos·Yu 2022-03-08 02:58:06 +08:00 committed by GitHub
parent bd602277bf
commit 54de40278a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1295eab..0fb9f17 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -126,6 +126,7 @@ if(ONNX_BUILD_TESTS)
include(googletest)
endif()
+find_package(protobuf CONFIG REQUIRED)
if((ONNX_USE_LITE_PROTO AND TARGET protobuf::libprotobuf-lite) OR ((NOT ONNX_USE_LITE_PROTO) AND TARGET protobuf::libprotobuf))
# Sometimes we need to use protoc compiled for host architecture while linking
# libprotobuf against target architecture. See https://github.com/caffe2/caffe

View File

@ -7,6 +7,7 @@ vcpkg_from_github(
SHA512 7519d326cd2b2b13a269ec0d01af07c32115d183dae6e1eaae55f5b23b6c92b2aadbb2b1e555557f4201bbcf921fa563d09d45d7f1d3bd2399c1a94a6ef63303
PATCHES
fix-cmakelists.patch
fix-dependency-protobuf.patch
)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_RUNTIME)

View File

@ -1,6 +1,7 @@
{
"name": "onnx",
"version-semver": "1.10.2",
"port-version": 1,
"description": "Open standard for machine learning interoperability",
"homepage": "https://onnx.ai",
"license": "Apache-2.0",

View File

@ -4958,7 +4958,7 @@
},
"onnx": {
"baseline": "1.10.2",
"port-version": 0
"port-version": 1
},
"onnx-optimizer": {
"baseline": "0.2.6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "62ee0b78332273115540d669065a467314aace3a",
"version-semver": "1.10.2",
"port-version": 1
},
{
"git-tree": "a83605bd84787898f92ada1bf1874e162a441c10",
"version-semver": "1.10.2",