summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-02-06 19:45:32 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-02-06 19:45:32 (GMT)
commit0cb622a28b3d19e9681a315b5690c8aa496e83a4 (patch)
tree9117b2960eecebc1aa26fe31cfe24e28317b46a4 /Source/QtDialog/CMakeSetup.cxx
parent9e64d5b272e0279d4a6d5e595118f34bc3c1f6c9 (diff)
downloadCMake-0cb622a28b3d19e9681a315b5690c8aa496e83a4.zip
CMake-0cb622a28b3d19e9681a315b5690c8aa496e83a4.tar.gz
CMake-0cb622a28b3d19e9681a315b5690c8aa496e83a4.tar.bz2
BUG: On Mac OS X, give the CMake library the correct path to the cmake
exectuables. Fixes #6286.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index e79f3ed..e1d76a8 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -64,8 +64,13 @@ static const char * cmDocumentationOptions[][3] =
int main(int argc, char** argv)
{
- cmSystemTools::FindExecutableDirectory(argv[0]);
QApplication app(argc, argv);
+
+ QDir cmExecDir(QApplication::applicationDirPath());
+#if defined(Q_OS_MAC)
+ cmExecDir.cd("../../../");
+#endif
+ cmSystemTools::FindExecutableDirectory(cmExecDir.filePath("cmake").toAscii().data());
QTranslator translator;
QString transfile = QString("cmake_%1").arg(QLocale::system().name());