summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2008-03-04 14:16:33 (GMT)
committerKen Martin <ken.martin@kitware.com>2008-03-04 14:16:33 (GMT)
commitd47a5951edf48738db67dac22eef24de948965ec (patch)
treeaf6bc1dfefda26763e188227c276a811910ba9da /Source/cmakemain.cxx
parentefb309fe2981f7030946b057544bc6c413c74744 (diff)
downloadCMake-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.cxx3
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);