Skip to content

Commit 622f0b1

Browse files
committed
refactor: Simplify Onnxruntime installation in FetchOnnxruntime.cmake
1 parent dacfc63 commit 622f0b1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmake/FetchOnnxruntime.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ else()
8989
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
9090
set(Onnxruntime_INSTALL_LIBS ${Onnxruntime_LINK_LIBS} ${Onnxruntime_ADDITIONAL_LIBS})
9191
else()
92-
set(Onnxruntime_INSTALL_LIBS
93-
${Onnxruntime_LINK_LIBS} ${Onnxruntime_ADDITIONAL_LIBS}
94-
"${onnxruntime_SOURCE_DIR}/lib/libonnxruntime_providers_cuda.so"
95-
"${onnxruntime_SOURCE_DIR}/lib/libonnxruntime_providers_tensorrt.so")
92+
set(Onnxruntime_INSTALL_LIBS ${Onnxruntime_LINK_LIBS} ${Onnxruntime_ADDITIONAL_LIBS})
9693
endif()
9794
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE ${Onnxruntime_LINK_LIBS})
9895
target_include_directories(${CMAKE_PROJECT_NAME} SYSTEM PUBLIC "${onnxruntime_SOURCE_DIR}/include")

0 commit comments

Comments
 (0)