From 0cb622a28b3d19e9681a315b5690c8aa496e83a4 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Wed, 6 Feb 2008 14:45:32 -0500 Subject: BUG: On Mac OS X, give the CMake library the correct path to the cmake exectuables. Fixes #6286. --- Source/QtDialog/CMakeSetup.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()); -- cgit v0.12