mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
cmIfCommand: Simplify execution context construction
This commit is contained in:
1 parent
f5da19edd0
commit
7503deb2c5
1 file changed
+2
-8
@@ -203,15 +203,9 @@ bool cmIfCommand
|
||||
|
||||
cmake::MessageType status;
|
||||
|
||||
cmListFileContext execContext = this->Makefile->GetExecutionContext();
|
||||
|
||||
cmCommandContext commandContext;
|
||||
commandContext.Line = execContext.Line;
|
||||
commandContext.Name = execContext.Name;
|
||||
|
||||
cmConditionEvaluator conditionEvaluator(
|
||||
*(this->Makefile), cmListFileContext::FromCommandContext(
|
||||
commandContext, execContext.FilePath),
|
||||
*(this->Makefile),
|
||||
this->Makefile->GetExecutionContext(),
|
||||
this->Makefile->GetBacktrace());
|
||||
|
||||
bool isTrue = conditionEvaluator.IsTrue(
|
||||
|
||||
Reference in new issue
Block a user