Committed by
GitHub
Resolve issues with using pre-installed onnxruntime (#1058)
There is an issue with the directory, ${location_onnxruntime_header_dir}
may be NOT-FOUND
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -136,8 +136,8 @@ if(SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE) | @@ -136,8 +136,8 @@ if(SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE) | ||
| 136 | else() | 136 | else() |
| 137 | find_path(location_onnxruntime_header_dir onnxruntime_cxx_api.h | 137 | find_path(location_onnxruntime_header_dir onnxruntime_cxx_api.h |
| 138 | PATHS | 138 | PATHS |
| 139 | - /usr/include | ||
| 140 | - /usr/local/include | 139 | + /usr/include/onnxruntime |
| 140 | + /usr/local/include/onnxruntime | ||
| 141 | ) | 141 | ) |
| 142 | endif() | 142 | endif() |
| 143 | 143 |
-
请 注册 或 登录 后发表评论