updated onnxruntime-linux-aarch64.cmake so that libonnxruntime.so can be found for specific aarch64 cross-compilation environments (#1436)

Co-authored-by: xiao <shawl336@163.com>
This commit is contained in:
lxiao336
2024-10-16 22:42:42 +08:00
committed by GitHub
parent 593b96758b
commit 471cbd83c6

View File

@@ -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}")