Commit 833b86d5 authored by dt's avatar dt
Browse files

Fix that the cmake plugin did not allow removing build targets

parent 960716df
......@@ -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);
else if(!on && old.contains(target))
setValue(buildConfiguration, "buildTargets", old.removeOne(target));
setValue(buildConfiguration, "buildTargets", old);
QStringList MakeStep::additionalArguments(const QString &buildConfiguration) const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment