How to specify PDB file generation for C#/CSharp projects using CMake

Hi there,

is there a way to tell CMake to set the DebugType property for C# projects using CMake? What I would like to be able to do is to set it to pdbonly for Release Builds since without that my code coverage analysis does no longer work. As far as I understood this doesn’t seem to be possible…

I know (and tried) the VS_GLOBAL_ property but (as the name implies) this adds to the <PropertyGroup Label="Globals"> node while I need to add a

<DebugType>pdbonly</DebugType>

to the

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

node.

So something like this:

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  ...
  <DebugType>pdbonly</DebugType>
  ...
</PropertyGroup>

Cheers,

Stefan