Committed by
GitHub
Disable searching system lib dirs for onnxruntime (#51)
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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}") |
-
请 注册 或 登录 后发表评论