Commit b7796bf3 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Make sure we do not get "//" in the QMake path

Task-number: QTCREATORBUG-2990
parent 00a97664
......@@ -48,8 +48,11 @@ QString BuildableHelperLibrary::findSystemQt(const Utils::Environment &env)
QStringList paths = env.path();
foreach (const QString &path, paths) {
QString prefix = path;
if (!prefix.endsWith(QLatin1Char('/')))
foreach (const QString &possibleCommand, possibleQMakeCommands()) {
const QFileInfo qmake(path + QLatin1Char('/') + possibleCommand);
const QFileInfo qmake(prefix + possibleCommand);
if (qmake.exists()) {
if (!qtVersionForQMake(qmake.absoluteFilePath()).isNull()) {
return qmake.absoluteFilePath();
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