Disable searching system lib dirs for onnxruntime (#51)
This commit is contained in:
@@ -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}")
|
||||||
|
|||||||
Reference in New Issue
Block a user