Skip to content

FindCUDA/select_compute_arch: Restore two-component CUDA_VERSION

Brad King requested to merge brad.king/cmake:cuda-arch-version into master

Since !1856 (merged) this module sets CUDA_VERSION based on CMAKE_CUDA_COMPILER_VERSION when the language is enabled. Limit it to two components for consistency with the normal FindCUDA documentation and behavior.

Fixes: #18231

Merge request reports