diff options
author | Ken Martin <ken.martin@kitware.com> | 2008-03-04 14:16:33 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2008-03-04 14:16:33 (GMT) |
commit | d47a5951edf48738db67dac22eef24de948965ec (patch) | |
tree | af6bc1dfefda26763e188227c276a811910ba9da /Source/cmakemain.cxx | |
parent | efb309fe2981f7030946b057544bc6c413c74744 (diff) | |
download | CMake-d47a5951edf48738db67dac22eef24de948965ec.zip CMake-d47a5951edf48738db67dac22eef24de948965ec.tar.gz CMake-d47a5951edf48738db67dac22eef24de948965ec.tar.bz2 |
ENH: add --help-policies and --help-policy command line options
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index f635163..7f291c5 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -324,10 +324,12 @@ int do_cmake(int ac, char** av) } std::vector<cmDocumentationEntry> commands; + std::vector<cmDocumentationEntry> policies; std::vector<cmDocumentationEntry> compatCommands; std::vector<cmDocumentationEntry> generators; std::map<std::string,cmDocumentationSection *> propDocs; + hcm.GetPolicyDocumentation(policies); hcm.GetCommandDocumentation(commands, true, false); hcm.GetCommandDocumentation(compatCommands, false, true); hcm.GetPropertiesDocumentation(propDocs); @@ -340,6 +342,7 @@ int do_cmake(int ac, char** av) doc.AppendSection("Generators",generators); doc.PrependSection("Options",cmDocumentationOptions); doc.SetSection("Commands",commands); + doc.SetSection("Policies",policies); doc.AppendSection("Compatibility Commands",compatCommands); doc.SetSections(propDocs); |