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*".
This commit is contained in:
Brad King
2015-02-11 11:45:41 -05:00
parent f00829a938
commit f99991db88
4 changed files with 10 additions and 7 deletions

View File

@@ -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);