CUDA: Restore support for CMAKE_CUDA_ARCHITECTURES=OFF

Fixes: #23309
5 files changed