CMake: Fix regression that a "Build" build configuration was available

And the default selected when configuring a project, since it was the
first.

Broke with 5dbfd46bcf which merged
"availableBuilds" and "availableSetups".

Change-Id: Ibc8c241595f3fee6f35e08fa83e499550eff869b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Eike Ziller
2019-08-26 09:58:37 +02:00
parent 14b1b3137b
commit 10d3772b7a

View File

@@ -623,7 +623,7 @@ QList<BuildInfo> CMakeBuildConfigurationFactory::availableBuilds(const Kit *k,
FilePath path = forSetup ? Project::projectDirectory(projectPath) : projectPath;
for (int type = BuildTypeNone; type != BuildTypeLast; ++type) {
for (int type = BuildTypeDebug; type != BuildTypeLast; ++type) {
BuildInfo info = createBuildInfo(k, path.toString(), BuildType(type));
if (forSetup) {
info.displayName = info.typeName;