CMAKE_CUDA_FLAGS broken on 3.9 rc4 (Visual Studio generator)
I have been setting nvcc flags through the CMAKE_CUDA_FLAGS variable like so:
string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_52,code=sm_52 -gencode arch=compute_61,code=sm_61 -use_fast_math -Wno-deprecated-gpu-targets --expt-relaxed-constexpr")
With 3.9 rc3 and below everything works fine and I see the following under Configuration Properties->CUDA C/C++->Command Line->Additional Options:
%(AdditionalOptions) -Wno-deprecated-gpu-targets --expt-relaxed-constexpr
With 3.9 rc4 the build fails because the nvcc flags are malformed. The Additional Options window shows the following:
-Wno-deprecated-gpu-targets --expt-relaxed-constexpr;-Xcompiler="/EHsc -Zi -Ob0"