FindCUDAToolkit: error when multiple sub-projects call find_package(CUDAToolkit)
FindCUDAToolkit is currently trying to create a library target even if it already exists, leading to cmake errors. This happens if a given project includes others, and some of them end up calling find_package(CUDAToolkit). It shouldn't be a problem to do so. The attached patch fixes this.
[fix_cuda_target.patch](/uploads/b3418cd6ebbe892bf46ea0d509e20ca7/fix_cuda_target.patch)
issue