Skip to content

Commit

Permalink
[onnxruntime] fix DLL install location in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Dec 9, 2023
1 parent fc46a2b commit ffbe22e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ports/onnxruntime/fix-cuda.patch
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,16 @@ index 8cf6dd1..0119493 100644
endif()
if (MSVC)
foreach(CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORY ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index d3e9c36..3a4d34c 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -1039,7 +1039,7 @@ function(onnxruntime_add_shared_library_module target_name)
add_library(${target_name} SHARED ${ARGN})
else()
#On Windows, this target shouldn't generate an import lib, but I don't know how to disable it.
- add_library(${target_name} MODULE ${ARGN})
+ add_library(${target_name} SHARED ${ARGN})
endif()

onnxruntime_configure_target(${target_name})
2 changes: 1 addition & 1 deletion versions/o-/onnxruntime.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "12e70855156d3ce75ba8655971f41cc94e2b0449",
"git-tree": "e9046291855178e0aebf9728e65f233a5507c3c0",
"version-semver": "1.16.0",
"port-version": 1
},
Expand Down

0 comments on commit ffbe22e

Please sign in to comment.