cmIfCommand: Simplify execution context construction
This commit is contained in:
parent
f5da19edd0
commit
7503deb2c5
|
@ -203,15 +203,9 @@ bool cmIfCommand
|
||||||
|
|
||||||
cmake::MessageType status;
|
cmake::MessageType status;
|
||||||
|
|
||||||
cmListFileContext execContext = this->Makefile->GetExecutionContext();
|
|
||||||
|
|
||||||
cmCommandContext commandContext;
|
|
||||||
commandContext.Line = execContext.Line;
|
|
||||||
commandContext.Name = execContext.Name;
|
|
||||||
|
|
||||||
cmConditionEvaluator conditionEvaluator(
|
cmConditionEvaluator conditionEvaluator(
|
||||||
*(this->Makefile), cmListFileContext::FromCommandContext(
|
*(this->Makefile),
|
||||||
commandContext, execContext.FilePath),
|
this->Makefile->GetExecutionContext(),
|
||||||
this->Makefile->GetBacktrace());
|
this->Makefile->GetBacktrace());
|
||||||
|
|
||||||
bool isTrue = conditionEvaluator.IsTrue(
|
bool isTrue = conditionEvaluator.IsTrue(
|
||||||
|
|
Loading…
Reference in New Issue