summaryrefslogtreecommitdiffstats
path: root/Source/cmFunctionCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-23 20:21:08 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-21 18:31:28 (GMT)
commit569f4785371399628dd401e2522dccc54c73e34e (patch)
treeebe71ab64f6fd035036c861155df2940e3438850 /Source/cmFunctionCommand.cxx
parentf971ab04cfdcb73e1ac2b182caf302172aebe6a8 (diff)
downloadCMake-569f4785371399628dd401e2522dccc54c73e34e.zip
CMake-569f4785371399628dd401e2522dccc54c73e34e.tar.gz
CMake-569f4785371399628dd401e2522dccc54c73e34e.tar.bz2
cmFunctionCommand: Store the FilePath when creating the prototype.
Diffstat (limited to 'Source/cmFunctionCommand.cxx')
-rw-r--r--Source/cmFunctionCommand.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index dc6d2d2..848cfd1 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -43,6 +43,7 @@ public:
newC->Args = this->Args;
newC->Functions = this->Functions;
newC->Policies = this->Policies;
+ newC->FilePath = this->FilePath;
return newC;
}
@@ -71,6 +72,7 @@ public:
std::vector<std::string> Args;
std::vector<cmListFileFunction> Functions;
cmPolicies::PolicyMap Policies;
+ std::string FilePath;
};
bool cmFunctionHelperCommand::InvokeInitialPass
@@ -171,6 +173,7 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
cmFunctionHelperCommand *f = new cmFunctionHelperCommand();
f->Args = this->Args;
f->Functions = this->Functions;
+ f->FilePath = this->GetStartingContext().FilePath;
mf.RecordPolicies(f->Policies);
// Set the FilePath on the arguments to match the function since it is