From 8d1be0945e52e7a4cd43ac40739dfcefc7076ce5 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 21 Feb 2023 10:38:18 +0800 Subject: [PATCH] Disable searching system lib dirs for onnxruntime (#51) --- cmake/onnxruntime.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake index eb98ab30..e7910bc1 100644 --- a/cmake/onnxruntime.cmake +++ b/cmake/onnxruntime.cmake @@ -55,7 +55,7 @@ function(download_onnxruntime) # ./include # It contains all the needed header files 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() foreach(f IN LISTS possible_file_locations) @@ -80,6 +80,7 @@ function(download_onnxruntime) find_library(location_onnxruntime onnxruntime PATHS "${onnxruntime_SOURCE_DIR}/lib" + NO_CMAKE_SYSTEM_PATH ) message(STATUS "location_onnxruntime: ${location_onnxruntime}")