cmInstallGenerator: Refactor computation of absolute install dest

Replace the GetInstallDestination method, which looked up the
Destination ivar, with a new ConvertToAbsoluteDestination method that
takes the nominal destination as an argument.  Update call sites
accordingly.  This will allow some clients to transform the install
destination before calling the method.
This commit is contained in:
Brad King
2015-02-11 11:48:02 -05:00
parent f99991db88
commit 290ca8e2d0
4 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ public:
/** Get the install destination as it should appear in the
installation script. */
std::string GetInstallDestination() const;
std::string ConvertToAbsoluteDestination(std::string const& dest) const;
/** Test if this generator installs something for a given configuration. */
bool InstallsForConfig(const std::string& config);