FindCUDA: Add support for full CUDA version (major.minor.patch)
Currently FindCUDA uses
nvcc --version to query the version of the CUDA Toolkit. From the nvcc output that looks like:
Cuda compilation tools, release 10.1, V10.1.105
10.1 part is extracted to set:
Being able to identify precise
CUDA_VERSION down to the patch level (with an additional
CUDA_VERSION_PATCH) would be useful.