summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-17 12:57:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-17 12:57:45 (GMT)
commit8f2b0c330706fe479fb0804b3526bf28503cd52a (patch)
treea9fec60998ed8a05e189fd0d454b8830e2c54977 /Source/QtDialog/CMakeSetup.cxx
parentfa8fc51aec1ca6454bb0a65a95d8792680283724 (diff)
parent9b212ad01a31bebe30975ab43a6a675eb78f9144 (diff)
downloadCMake-8f2b0c330706fe479fb0804b3526bf28503cd52a.zip
CMake-8f2b0c330706fe479fb0804b3526bf28503cd52a.tar.gz
CMake-8f2b0c330706fe479fb0804b3526bf28503cd52a.tar.bz2
Merge topic 'help-manual-cleanup'
9b212ad Make --help-* options available from all command-line tools 5dde65a Help: De-duplicate manual/(cmake|ccmake).1.rst build options ae944d1 Help: Organize manual/*.1.rst sections 4f7d708 Help: Drop leftover conversion content from manual/*.1.rst
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx7
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);