From 4544dc49221beef67bd5643fd08abe8130ae787b Mon Sep 17 00:00:00 2001 From: hantengc Date: Tue, 25 Jun 2024 16:06:18 +0800 Subject: [PATCH] Resolve issues with using pre-installed onnxruntime There is an issue with the directory, ${location_onnxruntime_header_dir} may be NOT-FOUND --- cmake/onnxruntime.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake index a446e624a..d1c4dc851 100644 --- a/cmake/onnxruntime.cmake +++ b/cmake/onnxruntime.cmake @@ -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()