From 471cbd83c6486b91270e5ad7252a8e99d36e5038 Mon Sep 17 00:00:00 2001 From: lxiao336 Date: Wed, 16 Oct 2024 22:42:42 +0800 Subject: [PATCH] updated onnxruntime-linux-aarch64.cmake so that libonnxruntime.so can be found for specific aarch64 cross-compilation environments (#1436) Co-authored-by: xiao --- cmake/onnxruntime-linux-aarch64.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/onnxruntime-linux-aarch64.cmake b/cmake/onnxruntime-linux-aarch64.cmake index a6ef7ce12..096318e0b 100644 --- a/cmake/onnxruntime-linux-aarch64.cmake +++ b/cmake/onnxruntime-linux-aarch64.cmake @@ -53,11 +53,7 @@ if(NOT onnxruntime_POPULATED) endif() message(STATUS "onnxruntime is downloaded to ${onnxruntime_SOURCE_DIR}") -find_library(location_onnxruntime onnxruntime - PATHS - "${onnxruntime_SOURCE_DIR}/lib" - NO_CMAKE_SYSTEM_PATH -) +set(location_onnxruntime "${onnxruntime_SOURCE_DIR}/lib/libonnxruntime.so") message(STATUS "location_onnxruntime: ${location_onnxruntime}")