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;
const FileName projectPathName = FileName::fromString(projectPath);
for (int type = BuildTypeNone; type != BuildTypeLast; ++type) {
for (int type = BuildTypeDebug; type != BuildTypeLast; ++type) {
BuildInfo info = createBuildInfo(k,
ProjectExplorer::Project::projectDirectory(projectPathName).toString(),
BuildType(type));
if (type == BuildTypeNone) {
//: The name of the build configuration created by default for a cmake project.
info.displayName = tr("Default");
} else {
info.displayName = info.typeName;
}
info.buildDirectory
= CMakeBuildConfiguration::shadowBuildDirectory(projectPathName, k,
info.displayName, info.buildType);