Commit 5a97f79e authored by Tobias Hunger's avatar Tobias Hunger
Browse files

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
parent c51c16bf
...@@ -749,6 +749,8 @@ QString QtVersionManager::findQMakeBinaryFromMakefile(const QString &directory) ...@@ -749,6 +749,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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment