Commit a559f0f6 authored by Brad King's avatar Brad King

cmWhileCommand: Simplify context construction

parent 7503deb2
......@@ -55,13 +55,9 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
commandContext.Line = execContext.Line;
commandContext.Name = execContext.Name;
cmListFileContext conditionContext =
cmListFileContext::FromCommandContext(
commandContext,
this->GetStartingContext().FilePath);
cmConditionEvaluator conditionEvaluator(
mf, conditionContext,
mf,
this->GetStartingContext(),
mf.GetBacktrace(commandContext));
bool isTrue = conditionEvaluator.IsTrue(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment