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:
@@ -53,11 +53,7 @@ if(NOT onnxruntime_POPULATED)
|
|||||||
endif()
|
endif()
|
||||||
message(STATUS "onnxruntime is downloaded to ${onnxruntime_SOURCE_DIR}")
|
message(STATUS "onnxruntime is downloaded to ${onnxruntime_SOURCE_DIR}")
|
||||||
|
|
||||||
find_library(location_onnxruntime onnxruntime
|
set(location_onnxruntime "${onnxruntime_SOURCE_DIR}/lib/libonnxruntime.so")
|
||||||
PATHS
|
|
||||||
"${onnxruntime_SOURCE_DIR}/lib"
|
|
||||||
NO_CMAKE_SYSTEM_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
message(STATUS "location_onnxruntime: ${location_onnxruntime}")
|
message(STATUS "location_onnxruntime: ${location_onnxruntime}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user