From 569f4785371399628dd401e2522dccc54c73e34e Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 23 May 2015 22:21:08 +0200 Subject: [PATCH] cmFunctionCommand: Store the FilePath when creating the prototype. --- Source/cmFunctionCommand.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx index dc6d2d270..848cfd1a2 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 Args; std::vector 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