mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
cmWhileCommand: Simplify context construction
This commit is contained in:
1 parent
7503deb2c5
commit
a559f0f6b0
1 file changed
+2
-6
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user