Commit a01151c5 authored by Adam Strzelecki's avatar Adam Strzelecki Committed by Daniel Teske

Consider build below source valid for latest Qmake

This shows "Qmake does not support build directories below the source
directory." only when using Qmake/Kit older than 5.2. This will resolve
complaints about artificial requirement to keep build out of source folder
which produces clutter on disk when working with multiple Qt projects.

Task-number: QTCREATORBUG-10024
Change-Id: Ib05c78f4e8f55eb71e94d255f74543d31f2d569f
Reviewed-by: default avatarDaniel Teske <>
parent cf618464
......@@ -1172,7 +1172,7 @@ QList<Task> BaseQtVersion::reportIssuesImpl(const QString &proFile, const QStrin
const QChar slash = QLatin1Char('/');
if (!sourcePath.endsWith(slash))
if ((tmpBuildDir.startsWith(sourcePath)) && (tmpBuildDir != sourcePath)) {
if ((tmpBuildDir.startsWith(sourcePath)) && (tmpBuildDir != sourcePath) && qtVersion() < QtVersionNumber(5, 2, 0)) {
const QString msg = QCoreApplication::translate("QmakeProjectManager::QtVersion",
"Qmake does not support build directories below the source directory.");
results.append(Task(Task::Warning, msg, FileName(), -1,
Markdown is supported
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