VS: Honor target_compile_definitions for C# projects

Fixes: #18698
This commit is contained in:
Wil Stark
2019-01-14 13:52:25 -08:00
parent da566d4de8
commit a541d113e6
4 changed files with 87 additions and 0 deletions

View File

@@ -2620,6 +2620,10 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
}
clOptions.AddDefines(targetDefines);
if (this->ProjectType == csproj) {
clOptions.AppendFlag("DefineConstants", targetDefines);
}
// Get includes for this target
if (!this->LangForClCompile.empty()) {
clOptions.AddIncludes(