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
Jingzhao Ou
2023-07-06 23:26:09 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-07-07 14:26:09 +0800
Commit
27762bb16999e5fbe17115aa85853f9ce132e672
27762bb1
1 parent
a8599507
fixed broken build when user provides their own onnxruntime library (#201)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
cmake/onnxruntime.cmake
cmake/onnxruntime.cmake
查看文件 @
27762bb
...
...
@@ -247,7 +247,11 @@ endif()
message
(
STATUS
"location_onnxruntime_header_dir:
${
location_onnxruntime_header_dir
}
"
)
if
(
DEFINED ENV{SHERPA_ONNXRUNTIME_LIB_DIR}
)
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.so
)
if
(
APPLE
)
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.dylib
)
else
()
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.so
)
endif
()
if
(
NOT EXISTS
${
location_onnxruntime_lib
}
)
set
(
location_onnxruntime_lib $ENV{SHERPA_ONNXRUNTIME_LIB_DIR}/libonnxruntime.a
)
endif
()
...
...
请
注册
或
登录
后发表评论