FindCUDAToolkit: Calls FATAL_ERROR on non-REQUIRED find_package
!5620 (merged) added some calls like
message(FATAL_ERROR "Could not execute nvcc with -v.")
This is okay in the enable_language(CUDA)
code path, but in find_package(CUDA)
or find_package(CUDAToolkit)
we should not have a fatal error if the package is not REQUIRED
. Instead of an error when nvcc -v
fails, we should act as if no nvcc
was found.