CMake: Make cmake build step available to all build step lists

"cmake --build ." is useful to build, clean and deploy, so offer it
everywhere.

This fixes soft asserts as a side effect when loading cmake projects with
existing "cmake --build . --target=clean" in their clean steps.

Cherry-pick of 63f31a1e4b from master.

Change-Id: I39e5866f6012b9ea1153da324e4abd1cd25fea92
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2018-03-22 15:30:26 +01:00
parent a821533851
commit 38b6b79775

View File

@@ -573,7 +573,6 @@ CMakeBuildStepFactory::CMakeBuildStepFactory()
registerStep<CMakeBuildStep>(Constants::CMAKE_BUILD_STEP_ID);
setDisplayName(tr("Build", "Display name for CMakeProjectManager::CMakeBuildStep id."));
setSupportedProjectType(Constants::CMAKEPROJECT_ID);
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
}
void CMakeBuildStep::processStarted()