Fangjun Kuang
Committed by GitHub

Disable searching system lib dirs for onnxruntime (#51)

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