find_package(CUDAToolkit) Breaks when called from multiple directories
!7853 (merged) Introduced a failure where the CUDA::nvptxcompiler_static
is given extra target link libraries.
But when this module is called from multiple directories we get the following failure since we are trying to modify the target_link_libraries line outside the directory the target was created in.
Cannot specify link libraries for target "CUDA::nvptxcompiler_static" which is not built by this project.