From be9dfb6b2ecd5a94d17f1bf7a478bfb85710f2be Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 19 Nov 2013 11:49:42 +0100 Subject: cmTarget: Make GetExportMacro const. The std::string member is only used for memory management. --- Source/cmTarget.cxx | 2 +- Source/cmTarget.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index e063125..f8cf079 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -4037,7 +4037,7 @@ std::string cmTarget::GetFrameworkVersion() const } //---------------------------------------------------------------------------- -const char* cmTarget::GetExportMacro() +const char* cmTarget::GetExportMacro() const { // Define the symbol for targets that export symbols. if(this->GetType() == cmTarget::SHARED_LIBRARY || diff --git a/Source/cmTarget.h b/Source/cmTarget.h index d78fe35..cbd5f58 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -449,7 +449,7 @@ public: /** Get the macro to define when building sources in this target. If no macro should be defined null is returned. */ - const char* GetExportMacro(); + const char* GetExportMacro() const; void GetCompileDefinitions(std::vector &result, const char *config) const; @@ -678,7 +678,7 @@ private: bool HaveInstallRule; std::string InstallPath; std::string RuntimeInstallPath; - std::string ExportMacro; + mutable std::string ExportMacro; std::set Utilities; bool RecordDependencies; mutable cmPropertyMap Properties; -- cgit v0.12