diff options
author | Brad King <brad.king@kitware.com> | 2015-07-21 13:22:17 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-07-21 13:22:17 (GMT) |
commit | 93b393e74c3a7508fe013b423809e7e35f9bc8a0 (patch) | |
tree | de55e403f3fa6c3b61ad6175850efdc9871ccc56 /Source/cmMakefile.cxx | |
parent | 64aa41b2480384be22881a3bacc8960ec57b0f11 (diff) | |
parent | c6055d9d4c2f37822866981f5cea1f7389431d49 (diff) | |
download | CMake-93b393e74c3a7508fe013b423809e7e35f9bc8a0.zip CMake-93b393e74c3a7508fe013b423809e7e35f9bc8a0.tar.gz CMake-93b393e74c3a7508fe013b423809e7e35f9bc8a0.tar.bz2 |
Merge topic 'remove-Properties-accessor'
c6055d9d cmMakefile: Remove GetProperties method.
cbe3ee58 cmMakefile: Add a PropertyKeys accessor.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 5790b75..80619d1 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4344,6 +4344,18 @@ bool cmMakefile::GetPropertyAsBool(const std::string& prop) const return cmSystemTools::IsOn(this->GetProperty(prop)); } +std::vector<std::string> cmMakefile::GetPropertyKeys() const +{ + std::vector<std::string> keys; + keys.reserve(this->Properties.size()); + for(cmPropertyMap::const_iterator it = this->Properties.begin(); + it != this->Properties.end(); ++it) + { + keys.push_back(it->first); + } + return keys; +} + cmTarget* cmMakefile::FindTarget(const std::string& name, bool excludeAliases) const { |