Hi everybody
I am currently working on transforming our hard checked-in .csproj
files into CMakeLists files. I ran into the problem that I do not know how to set the warning level in this case.
This is done in the .csproj
file with the tag
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
...
<WarningLevel>1</WarningLevel>
...
</PropertyGroup>
I know that I can use the target property VS_GLOBAL_WarningLevel
to add the WarningLevel
to the plain PropertyGroup
<PropertyGroup>
...
<WarningLevel>1</WarningLevel>
...
</PropertyGroup>
but this does not affect the value in the configuration specific PropertyGroup which seems to override the value from non config specific PropertyGroup. Is there a way to solve this problem?
I am looking for a VS_GLOBAL_<CONFIG>_<variable>
target property, to access the config specific section, but I do not think that exists.