summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallFilesGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-21 21:45:26 (GMT)
committerBrad King <brad.king@kitware.com>2014-02-21 22:05:26 (GMT)
commitf11f7b34a8e77c3bd68578f00b57e0884cb0d872 (patch)
treea109e5873b03c632fd950e64de8fee59e32a0ad5 /Source/cmInstallFilesGenerator.h
parente190236c7424fec478b083488eeed88717ed123a (diff)
downloadCMake-f11f7b34a8e77c3bd68578f00b57e0884cb0d872.zip
CMake-f11f7b34a8e77c3bd68578f00b57e0884cb0d872.tar.gz
CMake-f11f7b34a8e77c3bd68578f00b57e0884cb0d872.tar.bz2
cmInstallFilesGenerator: Add reference to calling cmMakefile
Add a Makefile member to the cmInstallFilesGenerator class and populate it on construction. This will be useful in a following change to evaluate generator expressions with proper context.
Diffstat (limited to 'Source/cmInstallFilesGenerator.h')
-rw-r--r--Source/cmInstallFilesGenerator.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmInstallFilesGenerator.h b/Source/cmInstallFilesGenerator.h
index 871335c..02b005e 100644
--- a/Source/cmInstallFilesGenerator.h
+++ b/Source/cmInstallFilesGenerator.h
@@ -14,13 +14,16 @@
#include "cmInstallGenerator.h"
+class cmMakefile;
+
/** \class cmInstallFilesGenerator
* \brief Generate file installation rules.
*/
class cmInstallFilesGenerator: public cmInstallGenerator
{
public:
- cmInstallFilesGenerator(std::vector<std::string> const& files,
+ cmInstallFilesGenerator(cmMakefile* mf,
+ std::vector<std::string> const& files,
const char* dest, bool programs,
const char* file_permissions,
std::vector<std::string> const& configurations,
@@ -31,6 +34,8 @@ public:
protected:
virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
+
+ cmMakefile* Makefile;
std::vector<std::string> Files;
bool Programs;
std::string FilePermissions;