You can specify the order in which projects are built. Referenced projects are built first.
When you set the build order, the CDT does not rebuild projects that depend on a project. You must rebuild all projects to ensure changes are propagated.
For more information on build order, see Workbench User Guide > Reference > Preference > Build Order.
To set the project build order:
When building or rebuilding all projects, the projects that have been removed from the build order are built last.
Defining build settings
Building
Make Builder page, C/C++ Properties window