CMake: Remove the "Default" built type from the list of build types

Fixes: QTCREATORBUG-22013
Change-Id: I578078b4e2e1fee89e8b7d1f619eda742d43bf60
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Cristian Adam
2019-02-26 00:29:40 +01:00
parent f066af4c14
commit f45da77738

View File

@@ -455,16 +455,11 @@ QList<BuildInfo> CMakeBuildConfigurationFactory::availableSetups(const Kit *k, c
{ {
QList<BuildInfo> result; QList<BuildInfo> result;
const FileName projectPathName = FileName::fromString(projectPath); const FileName projectPathName = FileName::fromString(projectPath);
for (int type = BuildTypeNone; type != BuildTypeLast; ++type) { for (int type = BuildTypeDebug; type != BuildTypeLast; ++type) {
BuildInfo info = createBuildInfo(k, BuildInfo info = createBuildInfo(k,
ProjectExplorer::Project::projectDirectory(projectPathName).toString(), ProjectExplorer::Project::projectDirectory(projectPathName).toString(),
BuildType(type)); BuildType(type));
if (type == BuildTypeNone) { info.displayName = info.typeName;
//: The name of the build configuration created by default for a cmake project.
info.displayName = tr("Default");
} else {
info.displayName = info.typeName;
}
info.buildDirectory info.buildDirectory
= CMakeBuildConfiguration::shadowBuildDirectory(projectPathName, k, = CMakeBuildConfiguration::shadowBuildDirectory(projectPathName, k,
info.displayName, info.buildType); info.displayName, info.buildType);