diff options
author | Brad King <brad.king@kitware.com> | 2015-02-11 16:45:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-11 20:05:57 (GMT) |
commit | f99991db882c2f4cf8246b9c272845faaa5bbce5 (patch) | |
tree | 9e3e6a631610793d35ca6bd0605bb0b1f131d79a /Source/cmInstallExportGenerator.h | |
parent | f00829a9384283ef1cf86b337b41eaed30ca7ded (diff) | |
download | CMake-f99991db882c2f4cf8246b9c272845faaa5bbce5.zip CMake-f99991db882c2f4cf8246b9c272845faaa5bbce5.tar.gz CMake-f99991db882c2f4cf8246b9c272845faaa5bbce5.tar.bz2 |
cmInstallGenerator: Move GetDestination to subclasses that need it
The method is used only for EXPORT and TARGET install destinations.
While at it, make it return a std::string by reference instead of a
"const char*".
Diffstat (limited to 'Source/cmInstallExportGenerator.h')
-rw-r--r-- | Source/cmInstallExportGenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmInstallExportGenerator.h b/Source/cmInstallExportGenerator.h index eb8c28b..3e078f2 100644 --- a/Source/cmInstallExportGenerator.h +++ b/Source/cmInstallExportGenerator.h @@ -41,6 +41,9 @@ public: const std::string& GetNamespace() const { return this->Namespace; } + std::string const& GetDestination() const + { return this->Destination; } + protected: virtual void GenerateScript(std::ostream& os); virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent); |