File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 11if (WIN32 )
22
3- message (NOTICE "Downloading onnxruntime" )
3+ message (NOTICE "Downloading onnxruntime: $ENV{TRITON_ONNXRUNTIME_PACKAGE_URL} " )
44
55 # Define the download and extraction paths)
66 set (DOWNLOAD_PATH "${CMAKE_BINARY_DIR} /_deps/downloads/onnxruntime.zip" )
@@ -19,12 +19,7 @@ if(WIN32)
1919 # Extract the downloaded file
2020 file (ARCHIVE_EXTRACT INPUT ${DOWNLOAD_PATH} DESTINATION ${EXTRACT_DIR} VERBOSE )
2121
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 )
2823 set (TRITON_ONNXRUNTIME_LIB_PATHS ${EXTRACT_DIR} /lib)
2924
3025 endif (NOT DOWNLOAD_RESULT EQUAL 0)
You can’t perform that action at this time.
0 commit comments