diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2020-06-11 20:06:02 (GMT) |
---|---|---|
committer | Justin Goshi <jgoshi@microsoft.com> | 2020-06-16 23:32:34 (GMT) |
commit | 742ff97f809410055b22405a6b5728e72c458683 (patch) | |
tree | 3587f801e2f0801ea42b45ba3a7bdc0624cf6d5c /Source/cmGeneratorExpressionNode.cxx | |
parent | 0892c798f795c6072ce882552384187db86797f0 (diff) | |
download | CMake-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.cxx | 4 |
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; } |