diff options
author | Brad King <brad.king@kitware.com> | 2013-10-16 16:54:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-16 20:24:51 (GMT) |
commit | 9b212ad01a31bebe30975ab43a6a675eb78f9144 (patch) | |
tree | 6066e4fc9ed2a2972185a419439429a74dc78793 /Source/QtDialog/CMakeSetup.cxx | |
parent | 5dde65ac5b1ecdcc5b47bdba1b806a25fe6d3402 (diff) | |
download | CMake-9b212ad01a31bebe30975ab43a6a675eb78f9144.zip CMake-9b212ad01a31bebe30975ab43a6a675eb78f9144.tar.gz CMake-9b212ad01a31bebe30975ab43a6a675eb78f9144.tar.bz2 |
Make --help-* options available from all command-line tools
Make the standard --help-* options available from all command-line
tools. Drop options that are no longer supported:
--copyright, --help-full, --help-html, --help-man,
--help-compatcommands, --help-custom-modules
De-duplicate Help/manual/*.1.rst help options by using an
OPTIONS_HELP.txt file included from each manual.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index cfefab2..095aeb6 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -58,12 +58,7 @@ int main(int argc, char** argv) // Construct and print requested documentation. cmake hcm; hcm.AddCMakePaths(); - // just incase the install is bad avoid a seg fault - const char* root = hcm.GetCacheDefinition("CMAKE_ROOT"); - if(root) - { - doc.SetCMakeRoot(root); - } + doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT")); std::vector<cmDocumentationEntry> generators; hcm.GetGeneratorDocumentation(generators); |