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
-3
View File
@@ -50,9 +50,6 @@ public:
Indent const& indent = Indent()
);
const char* GetDestination() const
{ return this->Destination.c_str(); }
/** Get the install destination as it should appear in the
installation script. */
std::string GetInstallDestination() const;