Skip to content

Commit

Permalink
fix more typo of onnxruntime installation
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 7, 2023
1 parent b836f11 commit 3568f4e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions vcpkg-overlay/ports/maa-onnxruntime/0006-typo-install-to-bin.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,25 @@ index 59ebf8e..c83e6a2 100644
FRAMEWORK DESTINATION ${CMAKE_INSTALL_BINDIR})


diff --git a/cmake/onnxruntime_providers.cmake b/cmake/onnxruntime_providers.cmake
index 03360ff..03be869 100644
--- a/cmake/onnxruntime_providers.cmake
+++ b/cmake/onnxruntime_providers.cmake
@@ -366,7 +366,7 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
install(TARGETS onnxruntime_providers_shared
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
endif()

@@ -810,7 +810,7 @@ if (onnxruntime_USE_TENSORRT)
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})
endif()

if (onnxruntime_USE_VITISAI)

0 comments on commit 3568f4e

Please sign in to comment.