mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
CUDAToolkit: add_cuda_link_dependency correctly sets dependencies
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user