cmTarget: Make GetExportMacro const.
The std::string member is only used for memory management.
This commit is contained in:
parent
0794c1360d
commit
be9dfb6b2e
|
@ -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.
|
// Define the symbol for targets that export symbols.
|
||||||
if(this->GetType() == cmTarget::SHARED_LIBRARY ||
|
if(this->GetType() == cmTarget::SHARED_LIBRARY ||
|
||||||
|
|
|
@ -449,7 +449,7 @@ public:
|
||||||
|
|
||||||
/** Get the macro to define when building sources in this target.
|
/** Get the macro to define when building sources in this target.
|
||||||
If no macro should be defined null is returned. */
|
If no macro should be defined null is returned. */
|
||||||
const char* GetExportMacro();
|
const char* GetExportMacro() const;
|
||||||
|
|
||||||
void GetCompileDefinitions(std::vector<std::string> &result,
|
void GetCompileDefinitions(std::vector<std::string> &result,
|
||||||
const char *config) const;
|
const char *config) const;
|
||||||
|
@ -678,7 +678,7 @@ private:
|
||||||
bool HaveInstallRule;
|
bool HaveInstallRule;
|
||||||
std::string InstallPath;
|
std::string InstallPath;
|
||||||
std::string RuntimeInstallPath;
|
std::string RuntimeInstallPath;
|
||||||
std::string ExportMacro;
|
mutable std::string ExportMacro;
|
||||||
std::set<cmStdString> Utilities;
|
std::set<cmStdString> Utilities;
|
||||||
bool RecordDependencies;
|
bool RecordDependencies;
|
||||||
mutable cmPropertyMap Properties;
|
mutable cmPropertyMap Properties;
|
||||||
|
|
Loading…
Reference in New Issue