Linking dynamic CUDA library instead of static (less prone to breaking since Astaroth does not have to be rebuilt when CUDA is updated)

This commit is contained in:
jpekkila
2020-04-19 22:33:01 +03:00
parent 8c210b3292
commit ffb274e16f

View File

@@ -2,7 +2,7 @@ find_package(CUDAToolkit)
## Astaroth Core
add_library(astaroth_core STATIC device.cc node.cc astaroth.cc)
target_link_libraries(astaroth_core astaroth_utils astaroth_kernels CUDA::cudart_static)
target_link_libraries(astaroth_core astaroth_utils astaroth_kernels CUDA::cudart)
## Options
if (MPI_ENABLED)