Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Anders Xiao
2024-11-16 11:57:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-11-16 11:57:10 +0800
Commit
e993c0853824ff3bdc8332ff2a1416402fd97755
e993c085
1 parent
b28b0c81
fix windows build (#1546)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
cmake/onnxruntime.cmake
cmake/onnxruntime.cmake
查看文件 @
e993c08
...
...
@@ -152,6 +152,8 @@ if(SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE)
if
(
DEFINED ENV{SHERPA_ONNXRUNTIME_LIB_DIR}
)
if
(
APPLE
)
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.dylib
)
elseif
(
WIN32
)
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/onnxruntime.lib
)
else
()
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.so
)
endif
()
...
...
@@ -198,6 +200,7 @@ if(location_onnxruntime_header_dir AND location_onnxruntime_lib)
add_library
(
onnxruntime SHARED IMPORTED
)
set_target_properties
(
onnxruntime PROPERTIES
IMPORTED_LOCATION
${
location_onnxruntime_lib
}
IMPORTED_IMPLIB
${
location_onnxruntime_lib
}
INTERFACE_INCLUDE_DIRECTORIES
"
${
location_onnxruntime_header_dir
}
"
)
if
(
SHERPA_ONNX_ENABLE_GPU AND location_onnxruntime_cuda_lib
)
...
...
请
注册
或
登录
后发表评论