CMake cuda: use of maxrregcount in visual studio generator
When using the cuda flag -maxrregcount=x
the project file is not correctly generated,
there is a mismatch in the generated project file:
Define the flag in cmake and generate a project:
the cuda section in the project file looks like:
<CudaCompile>
[..]
<AdditionalOptions>%(AdditionalOptions) -maxrregcount=58 -Xcompiler="/EHsc -Ob2"</AdditionalOptions>
[..]
</CudaCompile>
Create a project inside of visual studio
the cuda section in the project file looks like:
<CudaCompile>
[..]
<MaxRegCount>58</MaxRegCount>
[..]
</CudaCompile>
This error turns in a double definition of the maxrregcount
as the visual studio file defaults to -maxrregcount=0
if no value is set.
The questions are:
- is this a bug in the generator or is this a missing feature?
- is there some cmake property I could use to achieve this results.
thanks.