fix finding qmake.exe when called on the command line as ... qmake.exe
Task-number: QTBUG-33333 Change-Id: I026659fc779d1cf2fde46b5bcb4990b151b8c51e Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
77056f91cd
commit
6a41fa832e
@ -347,7 +347,8 @@ Option::init(int argc, char **argv)
|
||||
continue;
|
||||
QString candidate = currentDir.absoluteFilePath(*p + QLatin1Char('/') + argv0);
|
||||
#ifdef Q_OS_WIN
|
||||
candidate += ".exe";
|
||||
if (!candidate.endsWith(QLatin1String(".exe")))
|
||||
candidate += QLatin1String(".exe");
|
||||
#endif
|
||||
if (QFile::exists(candidate)) {
|
||||
globals->qmake_abslocation = candidate;
|
||||
|
Loading…
Reference in New Issue
Block a user