BUG: On Mac OS X, give the CMake library the correct path to the cmake

exectuables.  Fixes #6286.
This commit is contained in:
Clinton Stimpson 2008-02-06 14:45:32 -05:00
parent 9e64d5b272
commit 0cb622a28b
1 changed files with 6 additions and 1 deletions

View File

@ -64,8 +64,13 @@ static const char * cmDocumentationOptions[][3] =
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
cmSystemTools::FindExecutableDirectory(argv[0]);
QApplication app(argc, argv); 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; QTranslator translator;
QString transfile = QString("cmake_%1").arg(QLocale::system().name()); QString transfile = QString("cmake_%1").arg(QLocale::system().name());