cmWhileCommand: Simplify context construction
This commit is contained in:
parent
7503deb2c5
commit
a559f0f6b0
@ -55,13 +55,9 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
|
|||||||
commandContext.Line = execContext.Line;
|
commandContext.Line = execContext.Line;
|
||||||
commandContext.Name = execContext.Name;
|
commandContext.Name = execContext.Name;
|
||||||
|
|
||||||
cmListFileContext conditionContext =
|
|
||||||
cmListFileContext::FromCommandContext(
|
|
||||||
commandContext,
|
|
||||||
this->GetStartingContext().FilePath);
|
|
||||||
|
|
||||||
cmConditionEvaluator conditionEvaluator(
|
cmConditionEvaluator conditionEvaluator(
|
||||||
mf, conditionContext,
|
mf,
|
||||||
|
this->GetStartingContext(),
|
||||||
mf.GetBacktrace(commandContext));
|
mf.GetBacktrace(commandContext));
|
||||||
|
|
||||||
bool isTrue = conditionEvaluator.IsTrue(
|
bool isTrue = conditionEvaluator.IsTrue(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user