summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-13 22:56:50 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-13 22:56:50 (GMT)
commit9f61e2a235fc04e57237dc932aee61b264ef8916 (patch)
tree482f697639a0e55198f198eaf67282f088dee202 /Source/QtDialog/CMakeSetup.cxx
parentebc036bbdaa602c9276ad91469a305b42fda7cbc (diff)
downloadCMake-9f61e2a235fc04e57237dc932aee61b264ef8916.zip
CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.tar.gz
CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.tar.bz2
ENH: Centralized and globalized computation of CMake program locations. This eliminates startup paths that failed to produce this information.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index c7f5f54..3543903 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -21,6 +21,7 @@
#include "CMakeSetupDialog.h"
#include "cmDocumentation.h"
+#include "cmSystemTools.h"
#include "cmake.h"
//----------------------------------------------------------------------------
@@ -61,6 +62,7 @@ static const char * cmDocumentationOptions[][3] =
int main(int argc, char** argv)
{
+ cmSystemTools::FindExecutableDirectory(argv[0]);
QApplication app(argc, argv);
app.setApplicationName("CMakeSetup");
app.setOrganizationName("Kitware");
@@ -72,7 +74,7 @@ int main(int argc, char** argv)
{
// Construct and print requested documentation.
cmake hcm;
- hcm.AddCMakePaths(app.argv()[0]);
+ hcm.AddCMakePaths();
doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT"));
std::vector<cmDocumentationEntry> commands;
std::vector<cmDocumentationEntry> compatCommands;