FindCUDAToolkit: fails to set the proper CUDA SDK if there are two (or possibly more) CUDA SDKs in system
OS: Windows 10.
CUDA SDKs: v11.1 and v10.2.
CMake version: 3.18, also it has been reproduced after upgrade to CMake v3.19.7
PATH environment variable contains path to the
nvcc from CUDA SDK v11.1; the
CUDAToolkit_ROOT is already set to its path too, but
FindCUDAToolkit fails because CMake at first configure detects the CUDA compiler as "NVIDIA 10.2.89", ignoring nvcc from PATH.
CUDACXX env doesn't help too.