Skip to content

Commit

Permalink
refactor: Simplify Onnxruntime installation in FetchOnnxruntime.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Oct 1, 2024
1 parent dacfc63 commit 622f0b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/FetchOnnxruntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ else()
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set(Onnxruntime_INSTALL_LIBS ${Onnxruntime_LINK_LIBS} ${Onnxruntime_ADDITIONAL_LIBS})
else()
set(Onnxruntime_INSTALL_LIBS
${Onnxruntime_LINK_LIBS} ${Onnxruntime_ADDITIONAL_LIBS}
"${onnxruntime_SOURCE_DIR}/lib/libonnxruntime_providers_cuda.so"
"${onnxruntime_SOURCE_DIR}/lib/libonnxruntime_providers_tensorrt.so")
set(Onnxruntime_INSTALL_LIBS ${Onnxruntime_LINK_LIBS} ${Onnxruntime_ADDITIONAL_LIBS})
endif()
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE ${Onnxruntime_LINK_LIBS})
target_include_directories(${CMAKE_PROJECT_NAME} SYSTEM PUBLIC "${onnxruntime_SOURCE_DIR}/include")
Expand Down

0 comments on commit 622f0b1

Please sign in to comment.