summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());