Skip to content

Commit

Permalink
[onnx] Add dependency protobuf (#37469)
Browse files Browse the repository at this point in the history
Fixes #37456
  • Loading branch information
jimwang118 committed Mar 20, 2024
1 parent f1ab5b2 commit 9765877
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ports/onnx/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ONNX)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/ONNXConfig.cmake" "# import targets"
[[# import targets
include(CMakeFindDependencyMacro)
find_dependency(protobuf CONFIG)]])

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
Expand Down
1 change: 1 addition & 0 deletions ports/onnx/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "onnx",
"version-semver": "1.15.0",
"port-version": 1,
"description": "Open standard for machine learning interoperability",
"homepage": "https://onnx.ai",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6322,7 +6322,7 @@
},
"onnx": {
"baseline": "1.15.0",
"port-version": 0
"port-version": 1
},
"onnx-optimizer": {
"baseline": "0.3.18",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/onnx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "69ad297b15bb801f74d50be6e5d290eab7573be4",
"version-semver": "1.15.0",
"port-version": 1
},
{
"git-tree": "c143b899cbe396d82182568746203a3375fc23df",
"version-semver": "1.15.0",
Expand Down

0 comments on commit 9765877

Please sign in to comment.