Skip to content

Commit

Permalink
fix: onnxruntime installation error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 7, 2023
1 parent 6cc1643 commit b836f11
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vcpkg-overlay/ports/maa-onnxruntime/0006-typo-install-to-bin.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake
index 59ebf8e..c83e6a2 100644
--- a/cmake/onnxruntime.cmake
+++ b/cmake/onnxruntime.cmake
@@ -255,7 +255,7 @@ install(TARGETS onnxruntime
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_BINDIR})


1 change: 1 addition & 0 deletions vcpkg-overlay/ports/maa-onnxruntime/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ vcpkg_from_github(
0003-cmake-typo.patch
0004-flatbuffers-includes.patch
0005-disable-onnxruntime_mlas_q4dq.patch
0006-typo-install-to-bin.patch
)

vcpkg_find_acquire_program(PYTHON3)
Expand Down

2 comments on commit b836f11

@MistEO
Copy link
Member Author

@MistEO MistEO commented on b836f11 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MistEO
Copy link
Member Author

@MistEO MistEO commented on b836f11 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.