diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index cc21e1d..378b6c9 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2135,12 +2135,19 @@ void cmake::UpdateProgress(const char *msg, float prog) } } -void cmake::GetCommandDocumentation( - std::vector<cmDocumentationEntry>& v) const +void cmake::GetCommandDocumentation(std::vector<cmDocumentationEntry>& v, + bool withCurrentCommands, + bool withCompatCommands) const { for(RegisteredCommandsMap::const_iterator j = this->Commands.begin(); j != this->Commands.end(); ++j) { + if ((( withCompatCommands == false) && ( (*j).second->IsDiscouraged())) + || ((withCurrentCommands == false) && (!(*j).second->IsDiscouraged()))) + { + continue; + } + cmDocumentationEntry e = { (*j).second->GetName(), |