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
Only the 10.1
part is extracted to set:
CUDA_VERSION
CUDA_VERSION_MAJOR
CUDA_VERSION_MINOR
Being able to identify precise CUDA_VERSION
down to the patch level (with an additional CUDA_VERSION_PATCH
) would be useful.