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
This commit is contained in:
Tobias Hunger
2010-04-14 17:45:23 +02:00
parent c51c16bf58
commit 5a97f79e0b

View File

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