BUG: On Mac OS X, give the CMake library the correct path to the cmake
exectuables. Fixes #6286.
This commit is contained in:
parent
9e64d5b272
commit
0cb622a28b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue