Disable searching system lib dirs for onnxruntime (#51)

This commit is contained in:
Fangjun Kuang
2023-02-21 10:38:18 +08:00
committed by GitHub
parent 7ece27cd30
commit 8d1be0945e

View File

@@ -55,7 +55,7 @@ function(download_onnxruntime)
# ./include # ./include
# It contains all the needed header files # It contains all the needed header files
else() else()
message(FATAL_ERROR "Only support Linux and macOS at present. Will support other OSes later") message(FATAL_ERROR "Only support Linux, macOS, and Windows at present. Will support other OSes later")
endif() endif()
foreach(f IN LISTS possible_file_locations) foreach(f IN LISTS possible_file_locations)
@@ -80,6 +80,7 @@ function(download_onnxruntime)
find_library(location_onnxruntime onnxruntime find_library(location_onnxruntime onnxruntime
PATHS PATHS
"${onnxruntime_SOURCE_DIR}/lib" "${onnxruntime_SOURCE_DIR}/lib"
NO_CMAKE_SYSTEM_PATH
) )
message(STATUS "location_onnxruntime: ${location_onnxruntime}") message(STATUS "location_onnxruntime: ${location_onnxruntime}")