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:
@@ -136,8 +136,8 @@ if(SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE)
|
|||||||
else()
|
else()
|
||||||
find_path(location_onnxruntime_header_dir onnxruntime_cxx_api.h
|
find_path(location_onnxruntime_header_dir onnxruntime_cxx_api.h
|
||||||
PATHS
|
PATHS
|
||||||
/usr/include
|
/usr/include/onnxruntime
|
||||||
/usr/local/include
|
/usr/local/include/onnxruntime
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user