summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-14 13:21:40 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-12-14 13:21:52 (GMT)
commit4bc5c08476f28a23f42b4566a760b21cef60c4b3 (patch)
treeca54921299126c296412653baecd100008bc9871 /Source/cmVisualStudio10TargetGenerator.cxx
parent7341930ade835ce48641b5415cdd3f738772edf2 (diff)
parent10f58b27ac1015e4f1615372bb5168e43afcdf3a (diff)
downloadCMake-4bc5c08476f28a23f42b4566a760b21cef60c4b3.zip
CMake-4bc5c08476f28a23f42b4566a760b21cef60c4b3.tar.gz
CMake-4bc5c08476f28a23f42b4566a760b21cef60c4b3.tar.bz2
Merge topic 'per-source-COMPILE_LANGUAGE-genex-support'
10f58b27 Genex: Per-source $<COMPILE_LANGUAGE:...> support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1575
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index fd2f899..9154dca 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2152,7 +2152,8 @@ bool cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
flagtable = gg->GetCSharpFlagTable();
}
cmGeneratorExpressionInterpreter genexInterpreter(
- this->LocalGenerator, this->GeneratorTarget, *config);
+ this->LocalGenerator, this->GeneratorTarget, *config,
+ this->GeneratorTarget->GetName(), lang);
cmVisualStudioGeneratorOptions clOptions(
this->LocalGenerator, cmVisualStudioGeneratorOptions::Compiler,
flagtable, 0, this);
@@ -2163,7 +2164,7 @@ bool cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
clOptions.AddFlag("CompileAsWinRT", "false");
}
if (configDependentFlags) {
- clOptions.Parse(genexInterpreter.Evaluate(flags));
+ clOptions.Parse(genexInterpreter.Evaluate(flags, "COMPILE_FLAGS"));
} else {
clOptions.Parse(flags.c_str());
}
@@ -2176,7 +2177,8 @@ bool cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
"%(DisableSpecificWarnings)");
}
if (configDependentDefines) {
- clOptions.AddDefines(genexInterpreter.Evaluate(configDefines));
+ clOptions.AddDefines(
+ genexInterpreter.Evaluate(configDefines, "COMPILE_DEFINITIONS"));
} else {
clOptions.AddDefines(configDefines.c_str());
}