diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-18 16:59:18 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-18 16:59:18 (GMT) |
commit | cbe3ee58ca568ede66ff04abb6b73ac39b092701 (patch) | |
tree | 1c556a4e9283c49fb5c20c45418b98855a6f61ce /Source/cmMakefile.cxx | |
parent | e7fbd489e0da88e2fd70aa039da4f4173ee24028 (diff) | |
download | CMake-cbe3ee58ca568ede66ff04abb6b73ac39b092701.zip CMake-cbe3ee58ca568ede66ff04abb6b73ac39b092701.tar.gz CMake-cbe3ee58ca568ede66ff04abb6b73ac39b092701.tar.bz2 |
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 94c77e1..609e2d8 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4367,6 +4367,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 { |