Skip to content

Commit 3059eb1

Browse files
authored
Resolve issues with using pre-installed onnxruntime (k2-fsa#1058)
There is an issue with the directory, ${location_onnxruntime_header_dir} may be NOT-FOUND
1 parent 4b37a7d commit 3059eb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/onnxruntime.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ if(SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE)
136136
else()
137137
find_path(location_onnxruntime_header_dir onnxruntime_cxx_api.h
138138
PATHS
139-
/usr/include
140-
/usr/local/include
139+
/usr/include/onnxruntime
140+
/usr/local/include/onnxruntime
141141
)
142142
endif()
143143

0 commit comments

Comments
 (0)