forked from qt-creator/qt-creator
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:
@@ -623,7 +623,7 @@ QList<BuildInfo> CMakeBuildConfigurationFactory::availableBuilds(const Kit *k,
|
|||||||
|
|
||||||
FilePath path = forSetup ? Project::projectDirectory(projectPath) : projectPath;
|
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));
|
BuildInfo info = createBuildInfo(k, path.toString(), BuildType(type));
|
||||||
if (forSetup) {
|
if (forSetup) {
|
||||||
info.displayName = info.typeName;
|
info.displayName = info.typeName;
|
||||||
|
Reference in New Issue
Block a user