Skip to content

Commit 63a6f83

Browse files
committed
Change the configuration file
1 parent 1f7709f commit 63a6f83

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cmake/download_onnxruntime.cmake

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if(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)

0 commit comments

Comments
 (0)