Resolve issues with using pre-installed onnxruntime (#1058)

There is an issue with the directory, ${location_onnxruntime_header_dir}
may be NOT-FOUND
This commit is contained in:
hantengc
2024-06-25 16:21:36 +08:00
committed by GitHub
parent 2f8c489698
commit dfca4500aa

View File

@@ -136,8 +136,8 @@ if(SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE)
else()
find_path(location_onnxruntime_header_dir onnxruntime_cxx_api.h
PATHS
/usr/include
/usr/local/include
/usr/include/onnxruntime
/usr/local/include/onnxruntime
)
endif()