summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-04 11:12:50 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-06 15:22:41 (GMT)
commit238aac23514ecdae0d4edb71033e443f30e94158 (patch)
tree5cf049d75078016e4c7504689e2623e51738d99d /Source/cmIfCommand.cxx
parent329098a9a0e81e67bd760f53811cce582a3ebdcd (diff)
downloadCMake-238aac23514ecdae0d4edb71033e443f30e94158.zip
CMake-238aac23514ecdae0d4edb71033e443f30e94158.tar.gz
CMake-238aac23514ecdae0d4edb71033e443f30e94158.tar.bz2
cmListFile: Remove FilePath member from cmListFileContext.
There is no need to store the FilePath for every function, as it is known by other means.
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 20448c1..cdf278c 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -115,7 +115,10 @@ IsFunctionBlocked(const cmListFileFunction& lff,
{
std::string err = cmIfCommandError(expandedArguments);
err += errorString;
- cmListFileBacktrace bt = mf.GetBacktrace(this->Functions[c]);
+ cmListFileContext lfc =
+ cmListFileContext::FromCommandContext(
+ this->Functions[c], this->GetStartingContext().FilePath);
+ cmListFileBacktrace bt = mf.GetBacktrace(lfc);
mf.GetCMakeInstance()->IssueMessage(messType, err, bt);
if (messType == cmake::FATAL_ERROR)
{