Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dantmnf committed May 29, 2024
1 parent 327ecde commit e0d0c9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vcpkg-overlay/ports/maa-onnxruntime/0000-system-lib-fix.patch
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ index 8839dbc8f..acdb8a1ee 100644
- add_library(nsync::nsync_cpp ALIAS nsync_cpp)
- target_include_directories(nsync_cpp PUBLIC ${google_nsync_SOURCE_DIR}/public)
+ # vcpkg-specific
+ find_package(unofficial-nsync CONFIGS REQUIRED)
+ find_package(unofficial-nsync CONFIG REQUIRED)
+ if(TARGET unofficial::nsync::nsync_cpp)
+ add_library(nsync::nsync_cpp ALIAS unofficial::nsync::nsync_cpp)
endif()
Expand All @@ -177,7 +177,7 @@ index 8839dbc8f..acdb8a1ee 100644

if (NOT onnxruntime_MINIMAL_BUILD)
- onnxruntime_fetchcontent_makeavailable(onnx)
+ find_package(ONNX CONFIGS REQUIRED)
+ find_package(ONNX CONFIG REQUIRED)
+ add_library(onnx ALIAS ONNX::onnx)
+ add_library(onnx_proto ALIAS ONNX::onnx_proto)
else()
Expand Down
2 changes: 1 addition & 1 deletion vcpkg-overlay/ports/onnx/fix-dependency-protobuf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ index 1295eab..0fb9f17 100644
-list(APPEND CMAKE_PREFIX_PATH "@PROTOBUF_DIR@")
-set(Protobuf_INCLUDE_DIR "@PROTOBUF_INCLUDE_DIR@")
-find_package(Protobuf REQUIRED)
+find_package(Protobuf CONFIGS REQUIRED)
+find_package(Protobuf CONFIG REQUIRED)

# import targets
include ("${CMAKE_CURRENT_LIST_DIR}/ONNXTargets.cmake")

0 comments on commit e0d0c9a

Please sign in to comment.