Merged
requested to merge mraynaud/cmake:23376-add-compile-properties-to-csharp-sdk-projects into master
This change adds csharp compile properties to the "Configuration" part of a Sdk-style csproj generation by propagating flags gathered in clOptions. It adds DefineConstants
that was needed to support target_compile_definitions
.
Before
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<OutputPath>path\to\objdir</OutputPath>
</PropertyGroup>
After
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<OutputPath>path\to\objdir</OutputPath>
<DebugType>full</DebugType>
<DefineConstants>DEBUG;ADEFINITION</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<LangVersion>10</LangVersion>
<Optimize>false</Optimize>
<WarningLevel>3</WarningLevel>
</PropertyGroup>
Closes: #23376 (closed)
Issue: #23190