diff options
author | Wil Stark <wil_stark@keysight.com> | 2019-01-14 21:52:25 (GMT) |
---|---|---|
committer | Wil Stark <wil_stark@keysight.com> | 2019-01-16 05:29:59 (GMT) |
commit | a541d113e606b05073810bb1b5dd5a7a8fd2eec8 (patch) | |
tree | 6834a7fb4eb0f70dad69555f209378b696b9fcdc /Source | |
parent | da566d4de885130e182edc80f13691f5ca24bb61 (diff) | |
download | CMake-a541d113e606b05073810bb1b5dd5a7a8fd2eec8.zip CMake-a541d113e606b05073810bb1b5dd5a7a8fd2eec8.tar.gz CMake-a541d113e606b05073810bb1b5dd5a7a8fd2eec8.tar.bz2 |
VS: Honor target_compile_definitions for C# projects
Fixes: #18698
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 655d6f0..35d48f6 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -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( |