forked from qt-creator/qt-creator
QbsProjectManager: Fix default build directory
Commita43331ba67broke the build, and commit4a3546f58afixed it, but used the wrong function. Fixes: QTCREATORBUG-22142 Change-Id: I8a66bc8a4501f017726149544d73a728ab753e32 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -71,7 +71,7 @@ static FileName defaultBuildDirectory(const QString &projectFilePath, const Kit
|
||||
const QString projectName = QFileInfo(projectFilePath).completeBaseName();
|
||||
ProjectMacroExpander expander(projectFilePath, projectName, k, bcName, buildType);
|
||||
QString projectDir = Project::projectDirectory(FileName::fromString(projectFilePath)).toString();
|
||||
QString buildPath = expander.expand(ProjectExplorerPlugin::defaultBuildDirectoryTemplate());
|
||||
QString buildPath = expander.expand(ProjectExplorerPlugin::buildDirectoryTemplate());
|
||||
return FileName::fromString(FileUtils::resolvePath(projectDir, buildPath));
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ static QString buildDir(const QString &projectFilePath, const Kit *k)
|
||||
BuildConfiguration::Unknown);
|
||||
const QString projectDir
|
||||
= Project::projectDirectory(FileName::fromString(projectFilePath)).toString();
|
||||
const QString buildPath = expander.expand(ProjectExplorerPlugin::defaultBuildDirectoryTemplate());
|
||||
const QString buildPath = expander.expand(ProjectExplorerPlugin::buildDirectoryTemplate());
|
||||
return FileUtils::resolvePath(projectDir, buildPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user