summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionNode.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2020-06-11 20:06:02 (GMT)
committerJustin Goshi <jgoshi@microsoft.com>2020-06-16 23:32:34 (GMT)
commit742ff97f809410055b22405a6b5728e72c458683 (patch)
tree3587f801e2f0801ea42b45ba3a7bdc0624cf6d5c /Source/cmGeneratorExpressionNode.cxx
parent0892c798f795c6072ce882552384187db86797f0 (diff)
downloadCMake-742ff97f809410055b22405a6b5728e72c458683.zip
CMake-742ff97f809410055b22405a6b5728e72c458683.tar.gz
CMake-742ff97f809410055b22405a6b5728e72c458683.tar.bz2
Refactor language standard computation
Instead of mutating the configure-time cmTarget's properties at generate time, compute and store it in a cmGeneratorTarget field.
Diffstat (limited to 'Source/cmGeneratorExpressionNode.cxx')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index 6254c5b..3e0c21c 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -1742,9 +1742,9 @@ static const struct CompileFeaturesNode : public cmGeneratorExpressionNode
continue;
}
if (!context->LG->GetMakefile()->HaveStandardAvailable(
- target->Target, lit.first, it)) {
+ target, lit.first, context->Config, it)) {
if (evalLL) {
- cmProp l = target->GetProperty(lit.first + "_STANDARD");
+ cmProp l = target->GetLanguageStandard(lit.first, context->Config);
if (!l) {
l = standardDefault;
}