lxiao336
Committed by GitHub

updated onnxruntime-linux-aarch64.cmake so that libonnxruntime.so can be found f…

…or specific aarch64 cross-compilation environments (#1436)

Co-authored-by: xiao <shawl336@163.com>
@@ -53,11 +53,7 @@ if(NOT onnxruntime_POPULATED) @@ -53,11 +53,7 @@ if(NOT onnxruntime_POPULATED)
53 endif() 53 endif()
54 message(STATUS "onnxruntime is downloaded to ${onnxruntime_SOURCE_DIR}") 54 message(STATUS "onnxruntime is downloaded to ${onnxruntime_SOURCE_DIR}")
55 55
56 -find_library(location_onnxruntime onnxruntime  
57 - PATHS  
58 - "${onnxruntime_SOURCE_DIR}/lib"  
59 - NO_CMAKE_SYSTEM_PATH  
60 -) 56 +set(location_onnxruntime "${onnxruntime_SOURCE_DIR}/lib/libonnxruntime.so")
61 57
62 message(STATUS "location_onnxruntime: ${location_onnxruntime}") 58 message(STATUS "location_onnxruntime: ${location_onnxruntime}")
63 59