No way to set GPUDebugInfo = false for CUDA debug builds
There is currently no way to disable the -G NVCC flag for debug CUDA builds through CMake. The default behaviour of the NVidia CUDA plugin is to set the -G flag for debug builds, and disabling it requires the addition of
<GPUDebugInfo>false</GPUDebugInfo>
to the CudaCompile section of the .vcxproj file. There is currently no way to get this behaviour from CMake.
Not sure what best behaviour would be- perhaps insert <GPUDebugInfo>false</GPUDebugInfo>
by default for debug targets, and only omit it if the user specifies the -G flag?
(Found in CMake 3.10.0, generating for CUDA 9.0.176 and Visual Studio 15.4.1)