forked from qt-creator/qt-creator
RemoteLinux: Create run configs by target name, not by project file.
The current approach fails for all build systems where one project file can define more than one executable. Change-Id: Ieda413975709fbd6e7ea87b185aa962f63cb7c1f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -1497,8 +1497,11 @@ void QmakeProject::updateBuildSystemData()
|
||||
target->setDeploymentData(deploymentData);
|
||||
|
||||
BuildTargetInfoList appTargetList;
|
||||
foreach (const QmakeProFileNode * const node, applicationProFiles())
|
||||
appTargetList.list << BuildTargetInfo(executableFor(node), node->path());
|
||||
foreach (const QmakeProFileNode * const node, applicationProFiles()) {
|
||||
appTargetList.list << BuildTargetInfo(node->targetInformation().target,
|
||||
Utils::FileName::fromString(executableFor(node)),
|
||||
Utils::FileName::fromString(node->path()));
|
||||
}
|
||||
target->setApplicationTargets(appTargetList);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user