In the "Project Settings" section, go to "C / C ++ Build.
Select the "Developer Settings" tab.
Uncheck "Use default build command" and in the "Build command" field, simply add the target "clean" as the first target.
eg. if you have
> make -j2 settings
change it to
> make clean -j2 settings
rafamart
source share