summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallGenerator.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-19 15:11:06 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-06-19 15:11:06 (GMT)
commit617602e9e9e0ff57a3ef35e62e17d4a764edf920 (patch)
treee256d55948ad4c4f175dae03b65d1bce46fca182 /Source/cmInstallGenerator.h
parentf786f3ae3288c8a7d0156e62eba121e25ef321b9 (diff)
downloadCMake-617602e9e9e0ff57a3ef35e62e17d4a764edf920.zip
CMake-617602e9e9e0ff57a3ef35e62e17d4a764edf920.tar.gz
CMake-617602e9e9e0ff57a3ef35e62e17d4a764edf920.tar.bz2
STYLE: preparations for the INSTALL(EXPORT ...) generator
-move std::string Destination to cmInstallGenerator, since all (except the script one) have it and add a const accessor so it can be queried -use temporary variables in cmInstallCommand for the generators so they can be reused easier -some more const Alex
Diffstat (limited to 'Source/cmInstallGenerator.h')
-rw-r--r--Source/cmInstallGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmInstallGenerator.h b/Source/cmInstallGenerator.h
index 94c0fbd..4d33fdf 100644
--- a/Source/cmInstallGenerator.h
+++ b/Source/cmInstallGenerator.h
@@ -29,6 +29,7 @@ class cmInstallGenerator
{
public:
cmInstallGenerator();
+ cmInstallGenerator(const char* dest):Destination(dest?dest:"") {}
virtual ~cmInstallGenerator();
void Generate(std::ostream& os, const char* config,
@@ -47,11 +48,13 @@ public:
const char* literal_args = 0
);
+ const char* GetDestination() const {return this->Destination.c_str();}
protected:
virtual void GenerateScript(std::ostream& os)=0;
const char* ConfigurationName;
std::vector<std::string> const* ConfigurationTypes;
+ std::string Destination;
};
#endif