diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-22 12:44:51 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-22 12:44:51 (GMT) |
commit | 1d9889c5d34d83b269697c0b09e840bf83066e6f (patch) | |
tree | e1aed919ac0b90dc4a25ac02a8d2cbee69a79977 /Source/cmake.cxx | |
parent | 1383368628411f3834e2e29e81be306db74c610f (diff) | |
download | CMake-1d9889c5d34d83b269697c0b09e840bf83066e6f.zip CMake-1d9889c5d34d83b269697c0b09e840bf83066e6f.tar.gz CMake-1d9889c5d34d83b269697c0b09e840bf83066e6f.tar.bz2 |
ENH: put compatibility commands in extra section and prepare for creating
separate man pages for properties, modules, commands and compatibility
commands
Alex
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(), |