From 3568f4e2106328abcbe1f43bbd95e3eb533e96b8 Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 7 Oct 2023 19:06:59 +0800 Subject: [PATCH] fix more typo of onnxruntime installation --- .../0006-typo-install-to-bin.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/vcpkg-overlay/ports/maa-onnxruntime/0006-typo-install-to-bin.patch b/vcpkg-overlay/ports/maa-onnxruntime/0006-typo-install-to-bin.patch index d2f1536..f2c65fb 100644 --- a/vcpkg-overlay/ports/maa-onnxruntime/0006-typo-install-to-bin.patch +++ b/vcpkg-overlay/ports/maa-onnxruntime/0006-typo-install-to-bin.patch @@ -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)