summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionNode.cxx
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-09-21 21:39:48 (GMT)
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-09-22 07:49:41 (GMT)
commit1811411fecf3d9769ad7a13f6ecd01c5351df9c4 (patch)
tree13b7d923cac709aefd3bcf1cf999ccddeebd0a40 /Source/cmGeneratorExpressionNode.cxx
parentedb0bbd18b5c3dac16ab7d219f787513203529e4 (diff)
downloadCMake-1811411fecf3d9769ad7a13f6ecd01c5351df9c4.zip
CMake-1811411fecf3d9769ad7a13f6ecd01c5351df9c4.tar.gz
CMake-1811411fecf3d9769ad7a13f6ecd01c5351df9c4.tar.bz2
cmGeneratorExpression: Move quiet flag to cmCompiledGeneratorExpression
The quiet flag is false for all but one call to Evaluate. Make the quiet flag a setter of cmCompiledGeneratorExpression to be able to remove it from the Evaluate function signature.
Diffstat (limited to 'Source/cmGeneratorExpressionNode.cxx')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index d524867..419a82c 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -51,9 +51,10 @@ std::string cmGeneratorExpressionNode::EvaluateDependentExpression(
cmGeneratorExpression ge(context->Backtrace);
std::unique_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(prop);
cge->SetEvaluateForBuildsystem(context->EvaluateForBuildsystem);
+ cge->SetQuiet(context->Quiet);
std::string result =
- cge->Evaluate(lg, context->Config, context->Quiet, headTarget,
- currentTarget, dagChecker, context->Language);
+ cge->Evaluate(lg, context->Config, headTarget, currentTarget, dagChecker,
+ context->Language);
if (cge->GetHadContextSensitiveCondition()) {
context->HadContextSensitiveCondition = true;
}