Skip to content

Commit bc8b479

Browse files
committed
Switch to argument vs variable
1 parent 63a6f83 commit bc8b479

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/download_onnxruntime.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
if(WIN32)
22

3-
message(NOTICE "Downloading onnxruntime: $ENV{TRITON_ONNXRUNTIME_PACKAGE_URL}")
3+
message(NOTICE "Downloading onnxruntime: ${TRITON_ONNXRUNTIME_PACKAGE_URL}")
44

55
# Define the download and extraction paths)
66
set(DOWNLOAD_PATH "${CMAKE_BINARY_DIR}/_deps/downloads/onnxruntime.zip")
77
set(EXTRACT_DIR "${CMAKE_BINARY_DIR}/_deps/downloads/onnxruntime")
88

99
# 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)
1111

1212
# Check the download status
1313
list(GET DOWNLOAD_STATUS 0 DOWNLOAD_RESULT)
1414
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}")
1616
else()
1717
message(NOTICE "Download successful: ${DOWNLOAD_PATH}" )
1818

0 commit comments

Comments
 (0)