summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-23 18:32:05 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-21 18:57:25 (GMT)
commit076760a63c665dd2269c74d415e323f55969f544 (patch)
tree52b0bcdda884a0e9509473c60409c378a60c29d2 /Source/cmMakefile.h
parent569f4785371399628dd401e2522dccc54c73e34e (diff)
downloadCMake-076760a63c665dd2269c74d415e323f55969f544.zip
CMake-076760a63c665dd2269c74d415e323f55969f544.tar.gz
CMake-076760a63c665dd2269c74d415e323f55969f544.tar.bz2
cmMakefile: Add filename context to ExpandArguments.
The cmListFileArgument currently stores a FilePath for use in this method. The filename is the same as the CMAKE_CURRENT_LIST_FILE, except if executing a macro or function defined in another file. Set the context filename when expanding the arguments of macros and functions using the filename recorded when defining the prototype.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 86bde0c..8930b6d 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -662,10 +662,12 @@ public:
* variable replacement and list expansion.
*/
bool ExpandArguments(std::vector<cmListFileArgument> const& inArgs,
- std::vector<std::string>& outArgs) const;
+ std::vector<std::string>& outArgs,
+ const char* filename = 0) const;
bool ExpandArguments(std::vector<cmListFileArgument> const& inArgs,
- std::vector<cmExpandedCommandArgument>& outArgs) const;
+ std::vector<cmExpandedCommandArgument>& outArgs,
+ const char* filename = 0) const;
/**
* Get the instance
@@ -840,6 +842,8 @@ public:
const char* GetDefineFlagsCMP0059() const;
+ std::string GetExecutionFilePath() const;
+
protected:
// add link libraries and directories to the target
void AddGlobalLinkInformation(const std::string& name, cmTarget& target);