Skip to content

CUDA: Fix crash on linking to a CUDA target without CUDA enabled

Brad King requested to merge brad.king/cmake:vs-cuda-crash into master

Do not try to device link or add CUDA runtime libraries if the language is not enabled.

Fixes: #18673 (closed)
Issue: #18614
Topic-rename: cuda-external

Edited by Brad King

Merge request reports