QmakeProject: Simplify QmakeProject::updateBuildSystemData

destDir isn't used after a certain point, no need to update it anymore.

Change-Id: I106ce6a521425811b3fa352724e4bed7ac8d7d48
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
hjk
2018-07-27 11:40:18 +02:00
parent d8326afcff
commit 888d940de2

View File

@@ -1062,15 +1062,11 @@ void QmakeProject::updateBuildSystemData()
else
workingDir = destDir;
} else {
destDir = ti.buildDir.toString();
workingDir = ti.buildDir.toString();
}
if (HostOsInfo::isMacHost() && config.contains("app_bundle")) {
const QString infix = '/' + ti.target + ".app/Contents/MacOS";
workingDir += infix;
destDir += infix;
}
if (HostOsInfo::isMacHost() && config.contains("app_bundle"))
workingDir += '/' + ti.target + ".app/Contents/MacOS";
BuildTargetInfo bti;
bti.targetFilePath = FileName::fromString(executableFor(proFile));