diff --git a/cmake/FetchOnnxruntime.cmake b/cmake/FetchOnnxruntime.cmake index fa9556f..20203ea 100644 --- a/cmake/FetchOnnxruntime.cmake +++ b/cmake/FetchOnnxruntime.cmake @@ -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")