CUDA: device linking obeys CMAKE_CUDA_VISIBILITY_PRESET setting

Fixes #24272
7 files changed