Skip to content

CUDA: Dont device link if CUDA isn't an enabled language

Checks added in !3320 (merged) assumed that CUDA properties would be set only if CUDA is enabled.

We cannot do a device link step if we do not have the CUDA language enabled. This was discovered as some projects unconditionally set CUDA properties such as CUDA_RESOLVE_DEVICE_SYMBOLS even when the CUDA language has not been enabled.

Fixes: #19432 (closed)
Topic-rename: cuda-no-device-link-when-disabled

Edited by Brad King

Merge request reports