hantengc
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
@@ -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