"all" is a default setting, even though Behaviour->Build (Incremental build) tab has no variable. I solved as
- Go to Project Properties > C/C++ Build > Behaviour Tab.
- Leave Build (Incremental Build) Checked.
- Enter "test" in the text box next to Build (Incremental Build).
- Build Project. You will see error message.
- Go back to Build (Incremental Build) and delete "test".
- Build Project.