summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-12 22:18:22 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-15 09:14:21 (GMT)
commit60b3f216c18aa317656433bcc0b724e6abd8d02f (patch)
treede11bc434cb8145870ae1b989ff056c6594ac396 /Source
parentaaa5dbbf64392dad518668ac1d046d624dac41f3 (diff)
downloadCMake-60b3f216c18aa317656433bcc0b724e6abd8d02f.zip
CMake-60b3f216c18aa317656433bcc0b724e6abd8d02f.tar.gz
CMake-60b3f216c18aa317656433bcc0b724e6abd8d02f.tar.bz2
cmTarget: Remove mutable marker from properties
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx2
-rw-r--r--Source/cmTarget.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 7eb0ebf..d622ad9 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -3950,7 +3950,7 @@ void cmGeneratorTarget::ComputeVersionedName(std::string& vName,
std::vector<std::string> cmGeneratorTarget::GetPropertyKeys() const
{
- cmPropertyMap propsObject = this->Target->GetProperties();
+ cmPropertyMap const& propsObject = this->Target->GetProperties();
std::vector<std::string> props;
props.reserve(propsObject.size());
for (cmPropertyMap::const_iterator it = propsObject.begin();
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 3d88688..1c81081 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -208,7 +208,7 @@ public:
}
// Get the properties
- cmPropertyMap& GetProperties() const { return this->Properties; }
+ cmPropertyMap const& GetProperties() const { return this->Properties; }
bool GetMappedConfig(std::string const& desired_config, const char** loc,
const char** imp, std::string& suffix) const;
@@ -282,7 +282,7 @@ private:
bool implib) const;
private:
- mutable cmPropertyMap Properties;
+ cmPropertyMap Properties;
std::set<std::string> SystemIncludeDirectories;
std::set<std::string> LinkDirectoriesEmmitted;
std::set<std::string> Utilities;