File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
if (WIN32 )
2
2
3
- message (NOTICE "Downloading onnxruntime" )
3
+ message (NOTICE "Downloading onnxruntime: $ENV{TRITON_ONNXRUNTIME_PACKAGE_URL} " )
4
4
5
5
# Define the download and extraction paths)
6
6
set (DOWNLOAD_PATH "${CMAKE_BINARY_DIR} /_deps/downloads/onnxruntime.zip" )
@@ -19,12 +19,7 @@ if(WIN32)
19
19
# Extract the downloaded file
20
20
file (ARCHIVE_EXTRACT INPUT ${DOWNLOAD_PATH} DESTINATION ${EXTRACT_DIR} VERBOSE )
21
21
22
- # Make the extracted directory searchable for CMake
23
- list (APPEND CMAKE_PREFIX_PATH ${EXTRACT_DIR} )
24
-
25
- # Find a specific library in the extracted folder
26
- # find_library(ONNXRUNTIME_LIBRARY onnxruntime NAMES onnxruntime.dll onnxruntime.so PATHS ${EXTRACT_DIR} PATH_SUFFIXES lib include NO_DEFAULT_PATH)
27
-
22
+ set (TRITON_ONNXRUNTIME_INCLUDE_PATHS ${EXTRACT_DIR} /include )
28
23
set (TRITON_ONNXRUNTIME_LIB_PATHS ${EXTRACT_DIR} /lib)
29
24
30
25
endif (NOT DOWNLOAD_RESULT EQUAL 0)
You can’t perform that action at this time.
0 commit comments