summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-19 10:49:42 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-19 19:40:32 (GMT)
commitbe9dfb6b2ecd5a94d17f1bf7a478bfb85710f2be (patch)
tree17761e781a9bdba3b4b5a692b9af1908c32c72d5 /Source/cmTarget.h
parent0794c1360d43a61e96d11a62f493972e3ed52d8c (diff)
downloadCMake-be9dfb6b2ecd5a94d17f1bf7a478bfb85710f2be.zip
CMake-be9dfb6b2ecd5a94d17f1bf7a478bfb85710f2be.tar.gz
CMake-be9dfb6b2ecd5a94d17f1bf7a478bfb85710f2be.tar.bz2
cmTarget: Make GetExportMacro const.
The std::string member is only used for memory management.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h4
1 files changed, 2 insertions, 2 deletions
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<std::string> &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<cmStdString> Utilities;
bool RecordDependencies;
mutable cmPropertyMap Properties;