Skip to content
Snippets Groups Projects
Commit 833b86d5 authored by dt's avatar dt
Browse files

Fix that the cmake plugin did not allow removing build targets

parent 960716df
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,11 @@ void MakeStep::setBuildTarget(const QString &buildConfiguration, const QString &
{
QStringList old = value(buildConfiguration, "buildTargets").toStringList();
if (on && !old.contains(target))
setValue(buildConfiguration, "buildTargets", old << target);
old.append(target);
else if(!on && old.contains(target))
setValue(buildConfiguration, "buildTargets", old.removeOne(target));
old.removeOne(target);
setValue(buildConfiguration, "buildTargets", old);
}
QStringList MakeStep::additionalArguments(const QString &buildConfiguration) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment