summaryrefslogtreecommitdiffstats
path: root/Source/cmWhileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-14 14:46:41 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-15 12:31:59 (GMT)
commita559f0f6b020697a064517637ae04f0733ffc6ea (patch)
treee4016fcc38bbd8af41c86ea14fe9cdcbdc621566 /Source/cmWhileCommand.cxx
parent7503deb2c55a32f72c9ec34f17a800d4ab1e4c75 (diff)
downloadCMake-a559f0f6b020697a064517637ae04f0733ffc6ea.zip
CMake-a559f0f6b020697a064517637ae04f0733ffc6ea.tar.gz
CMake-a559f0f6b020697a064517637ae04f0733ffc6ea.tar.bz2
cmWhileCommand: Simplify context construction
Diffstat (limited to 'Source/cmWhileCommand.cxx')
-rw-r--r--Source/cmWhileCommand.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmWhileCommand.cxx b/Source/cmWhileCommand.cxx
index aabbe27..7bb78bf 100644
--- a/Source/cmWhileCommand.cxx
+++ b/Source/cmWhileCommand.cxx
@@ -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(