forked from qt-creator/qt-creator
ios: correctly handle exe path in subdir projects
Change-Id: I77c90933bf2f0fe9c2ae59bf76638adf995c368a Reviewed-by: Markus Goetz <markus@woboq.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -206,7 +206,15 @@ Utils::FileName IosRunConfiguration::bundleDir() const
|
||||
QmakeBuildConfiguration *bc =
|
||||
qobject_cast<QmakeBuildConfiguration *>(target()->activeBuildConfiguration());
|
||||
if (bc) {
|
||||
res = bc->buildDirectory();
|
||||
QmakeProject *pro = qobject_cast<QmakeProject *>(target()->project());
|
||||
const QmakeProFileNode *node = pro->rootQmakeProjectNode()->findProFileFor(profilePath());
|
||||
if (node) {
|
||||
TargetInformation ti = node->targetInformation();
|
||||
if (ti.valid)
|
||||
res = FileName::fromString(ti.buildDir);
|
||||
}
|
||||
if (res.isEmpty())
|
||||
res = bc->buildDirectory();
|
||||
switch (bc->buildType()) {
|
||||
case BuildConfiguration::Debug :
|
||||
case BuildConfiguration::Unknown :
|
||||
|
Reference in New Issue
Block a user