Handle qmake with or without trailing .exe

Handle qmake with or without trailing .exe on windows. Looks like the
extension got lost recently in the generated Makefiles.

Reviewed-by: dt
(cherry picked from commit 5a97f79e0b)
This commit is contained in:
Tobias Hunger
2010-04-14 17:45:23 +02:00
committed by con
parent edfa3a418f
commit 04ce34886f

View File

@@ -750,6 +750,8 @@ QString QtVersionManager::findQMakeBinaryFromMakefile(const QString &directory)
QString qmakePath = qmake.filePath(); QString qmakePath = qmake.filePath();
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
qmakePath = qmakePath.toLower(); qmakePath = qmakePath.toLower();
if (!qmakePath.endsWith(QLatin1String(".exe")))
qmakePath.append(QLatin1String(".exe"));
#endif #endif
// Is qmake still installed? // Is qmake still installed?
if (QFile::exists(qmakePath)) if (QFile::exists(qmakePath))