From f99991db882c2f4cf8246b9c272845faaa5bbce5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 11 Feb 2015 11:45:41 -0500 Subject: 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*". --- Source/cmInstallExportGenerator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/cmInstallExportGenerator.h') diff --git a/Source/cmInstallExportGenerator.h b/Source/cmInstallExportGenerator.h index eb8c28bbe9..3e078f229a 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); -- cgit v1.2.1