Restore cuda in test

This commit is contained in:
Ryan Hill 2021-04-21 20:28:03 -07:00
parent e74de85a53
commit 9f1c2ed767

View file

@ -929,10 +929,9 @@ if (onnxruntime_BUILD_SHARED_LIB)
if(NOT WIN32)
list(APPEND onnxruntime_shared_lib_test_LIBS nsync_cpp)
endif()
# TODO: Cuda is a separate shared library, can't just add .cu stuff to the main library
# if (onnxruntime_USE_CUDA)
# list(APPEND onnxruntime_shared_lib_test_LIBS onnxruntime_test_cuda_ops_lib cudart)
# endif()
if (onnxruntime_USE_CUDA)
list(APPEND onnxruntime_shared_lib_test_LIBS onnxruntime_test_cuda_ops_lib cudart)
endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
list(APPEND onnxruntime_shared_lib_test_LIBS ${android_shared_libs})
endif()