From e500eb80cd3fcd6f512d7d69ba7218a1b532c6fe Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 3 Jan 2020 16:42:16 -0500 Subject: CUDAToolkit: add_cuda_link_dependency correctly sets dependencies --- Modules/FindCUDAToolkit.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index 1837694..44f4951 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -708,7 +708,7 @@ if(CUDAToolkit_FOUND) endfunction() function(add_cuda_link_dependency lib_name) - foreach(dependency IN LISTS ${ARGN}) + foreach(dependency IN LISTS ARGN) target_link_libraries(CUDA::${lib_name} INTERFACE CUDA::${dependency}) endforeach() endfunction() -- cgit v0.12