forked from qt-creator/qt-creator
ProjectExplorer: Move some of the BuildInfo setup code to central places
Change-Id: I8893366acb187ea1a94a8ca272ded2c46cb521d1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -539,14 +539,13 @@ CompilationDatabaseBuildConfigurationFactory::CompilationDatabaseBuildConfigurat
|
||||
setSupportedProjectType(Constants::COMPILATIONDATABASEPROJECT_ID);
|
||||
setSupportedProjectMimeTypeName(Constants::COMPILATIONDATABASEMIMETYPE);
|
||||
|
||||
setBuildGenerator([this](const Kit *kit, const FilePath &projectPath, bool) {
|
||||
setBuildGenerator([](const Kit *, const FilePath &projectPath, bool) {
|
||||
const QString name = BuildConfiguration::tr("Release");
|
||||
ProjectExplorer::BuildInfo info(this);
|
||||
ProjectExplorer::BuildInfo info;
|
||||
info.typeName = name;
|
||||
info.displayName = name;
|
||||
info.buildType = BuildConfiguration::Release;
|
||||
info.buildDirectory = projectPath.parentDir();
|
||||
info.kitId = kit->id();
|
||||
return QList<BuildInfo>{info};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user