Skip to content

Commit 1369b94

Browse files
authored
Extract archive in different location (#289)
* Extract archive in different location * Revert "Extract archive in different location" This reverts commit e57256a. * Update installation instructions * Reapply "Extract archive in different location" This reverts commit 59e24e4.
1 parent c109bfa commit 1369b94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ install(
418418
# that tar file. We copy over the libraries and other requirements
419419
# prior to running this build and therefore these set of install
420420
# commands are not needed.
421-
if(TRITON_ONNXRUNTIME_DOCKER_BUILD)
421+
if(TRITON_ONNXRUNTIME_DOCKER_BUILD OR DEFINED TRITON_ONNXRUNTIME_PACKAGE_URL)
422422
install(
423423
DIRECTORY
424424
${CMAKE_CURRENT_BINARY_DIR}/onnxruntime/

cmake/download_onnxruntime.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if(DEFINED TRITON_ONNXRUNTIME_PACKAGE_URL)
22

33
set(DOWNLOAD_PATH "${CMAKE_BINARY_DIR}/_deps/downloads/onnxruntime.zip")
4-
set(EXTRACT_DIR "${CMAKE_BINARY_DIR}/_deps/downloads/onnxruntime")
4+
set(EXTRACT_DIR "${CMAKE_BINARY_DIR}/onnxruntime")
55

66
message(NOTICE "Downloading onnxruntime: ${TRITON_ONNXRUNTIME_PACKAGE_URL}")
77

0 commit comments

Comments
 (0)