forked from qt-creator/qt-creator
QbsPM: Fix handling of executable path
To be able to act correctly the internals of FilePath need to be
formatted in UNIX style.
Kind of amends c08317b5a6
.
Change-Id: I5a0c7b06005901575d47b9de327eeb657dbe3090
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -387,11 +387,11 @@ Utils::FilePath QbsBuildStep::installRoot(VariableHandling variableHandling) con
|
||||
const QString root =
|
||||
qbsConfiguration(variableHandling).value(Constants::QBS_INSTALL_ROOT_KEY).toString();
|
||||
if (!root.isNull())
|
||||
return Utils::FilePath::fromString(root);
|
||||
return Utils::FilePath::fromUserInput(root);
|
||||
QString defaultInstallDir = QbsSettings::defaultInstallDirTemplate();
|
||||
if (variableHandling == VariableHandling::ExpandVariables)
|
||||
defaultInstallDir = macroExpander()->expand(defaultInstallDir);
|
||||
return FilePath::fromString(defaultInstallDir);
|
||||
return FilePath::fromUserInput(defaultInstallDir);
|
||||
}
|
||||
|
||||
int QbsBuildStep::maxJobs() const
|
||||
|
@@ -498,7 +498,7 @@ FilePath QbsBuildSystem::installRoot()
|
||||
if (!step->enabled())
|
||||
continue;
|
||||
if (const auto qbsInstallStep = qobject_cast<const QbsInstallStep *>(step))
|
||||
return FilePath::fromString(qbsInstallStep->installRoot());
|
||||
return FilePath::fromUserInput(qbsInstallStep->installRoot());
|
||||
}
|
||||
}
|
||||
const QbsBuildStep * const buildStep = m_buildConfiguration->qbsStep();
|
||||
|
Reference in New Issue
Block a user