FindCUDA/select_compute_arch: Restore two-component CUDA_VERSION

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

Loading