From dfca4500aa713cdc9ba1d83fc16f579584c4e8a5 Mon Sep 17 00:00:00 2001 From: hantengc <42177714+hantengc@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:21:36 +0800 Subject: [PATCH] Resolve issues with using pre-installed onnxruntime (#1058) 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 a446e624..d1c4dc85 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()