CMake & nvcc 11.3.109

Creating a basic CUDA library with CMake, after generating a VS 2019 sln and trying to build greeted with following output:

“2> D:\Programming JJ\scratch\Temp\build\src>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe” -gencode=arch=compute_52,code=“compute_52,compute_52” -gencode=arch=compute_52,code=“sm_52,compute_52” -gencode=arch=compute_61,code=“compute_61,compute_61” -gencode=arch=compute_61,code=“sm_61,compute_61” -gencode=arch=compute_75,code=“compute_75,compute_75” -gencode=arch=compute_75,code=“sm_75,compute_75” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64” -x cu -rdc=true -I"D:\Programming JJ\scratch\Temp\src…\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -std=c++14 -Xcompiler="/EHsc -Zi -Ob0" -g -D_WINDOWS -D"CMAKE_INTDIR=“Debug”" -DWIN32 -D_WINDOWS -D"CMAKE_INTDIR=“Debug”" -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fd"D:\Programming JJ\scratch\Temp\build\src\Debug\cuda_lib.pdb” /FS /Zi /RTC1 /MDd /GR" -o cuda_lib.dir\Debug\kernel.obj “D:\Programming JJ\scratch\Temp\src\kernel.cu”
2> nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
2> C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.3.targets(785,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe” -gencode=arch=compute_52,code=“compute_52,compute_52” -gencode=arch=compute_52,code=“sm_52,compute_52” -gencode=arch=compute_61,code=“compute_61,compute_61” -gencode=arch=compute_61,code=“sm_61,compute_61” -gencode=arch=compute_75,code=“compute_75,compute_75” -gencode=arch=compute_75,code=“sm_75,compute_75” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64” -x cu -rdc=true -I"D:\Programming JJ\scratch\Temp\src…\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -std=c++14 -Xcompiler="/EHsc -Zi -Ob0" -g -D_WINDOWS -D"CMAKE_INTDIR=“Debug”" -DWIN32 -D_WINDOWS -D"CMAKE_INTDIR=“Debug”" -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fd"D:\Programming JJ\scratch\Temp\build\src\Debug\cuda_lib.pdb” /FS /Zi /RTC1 /MDd /GR" -o cuda_lib.dir\Debug\kernel.obj “D:\Programming JJ\scratch\Temp\src\kernel.cu”" exited with code 1."

Trying it on 11.3.58 works fine, it also seems to build fine on a Jetson Nano I have here.