File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
if (WIN32 )
2
2
3
- message (NOTICE "Downloading onnxruntime: $ENV {TRITON_ONNXRUNTIME_PACKAGE_URL} " )
3
+ message (NOTICE "Downloading onnxruntime: ${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" )
7
7
set (EXTRACT_DIR "${CMAKE_BINARY_DIR} /_deps/downloads/onnxruntime" )
8
8
9
9
# Download the file
10
- file (DOWNLOAD $ENV {TRITON_ONNXRUNTIME_PACKAGE_URL} ${DOWNLOAD_PATH} SHOW_PROGRESS STATUS DOWNLOAD_STATUS)
10
+ file (DOWNLOAD ${TRITON_ONNXRUNTIME_PACKAGE_URL} ${DOWNLOAD_PATH} SHOW_PROGRESS STATUS DOWNLOAD_STATUS)
11
11
12
12
# Check the download status
13
13
list (GET DOWNLOAD_STATUS 0 DOWNLOAD_RESULT)
14
14
if (NOT DOWNLOAD_RESULT EQUAL 0)
15
- message (SEND_ERROR "Failed to download ${ONNXRUNTIME_PACKAGE_URL } " )
15
+ message (SEND_ERROR "Failed to download: ${TRITON_ONNXRUNTIME_PACKAGE_URL } " )
16
16
else ()
17
17
message (NOTICE "Download successful: ${DOWNLOAD_PATH} " )
18
18
You can’t perform that action at this time.
0 commit comments