forked from qt-creator/qt-creator
CMake: Use "clean" target
Use the "clean" in the MakeStep to clean up. Change-Id: I7da29866a7dfc6debd70e83cc61f89b809a81cac Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -237,8 +237,7 @@ ProjectExplorer::BuildConfiguration *CMakeBuildConfigurationFactory::create(Proj
|
||||
|
||||
MakeStep *cleanMakeStep = new MakeStep(cleanSteps);
|
||||
cleanSteps->insertStep(0, cleanMakeStep);
|
||||
cleanMakeStep->setAdditionalArguments(QLatin1String("clean"));
|
||||
cleanMakeStep->setClean(true);
|
||||
cleanMakeStep->setBuildTarget(MakeStep::cleanTarget(), true);
|
||||
|
||||
bc->setBuildDirectory(copy.buildDirectory);
|
||||
bc->setInitialArguments(copy.arguments);
|
||||
|
||||
Reference in New Issue
Block a user