Expose and document CUDAToolkit_ROOT_DIR
CUDAToolkit_ROOT_DIR
is useful.
The FindCUDAToolkit
documentation already refers to it once without explaining what it is.
As an oversight, since 3.18 the code path in (actually not)FindCUDAToolkit
when CMAKE_CUDA_COMPILER_TOOLKIT_ROOT
is set leaks it (the other properly unset()
s it).
Edited by Raul Tambre