Skip to main content
slu.7
Associate II
Solved

How to make all projects in a solution built one after one automatically ? how to configurate the STM32cubeIDE?

we set up three projects for one solution . these projects share the same driver and third-party code. what we want to ​do is that ,when we build one project ,the other projects would be built one after one automatically after the first one . how to configurate the STM32cubeIDE? or any script ?

This topic has been closed for replies.
mattias norlander
ST Technical Moderator

What Pavel suggests can work. It will build the active build configuration for all projects that are currently "open" in the workspace.

Another approach if you have more than the three projects in the workspace. But want to make sure that ONLY these three projects are built in a well-defined order is to setup dependencies between the projects.

Select the project which is built last in your chain. Properties > C/C++ General > Paths and Symbols > References.

Here you can select which project and which build configuration depend on and use "Move Up/Down" to select order.

That said, Pavels solution may be simpler assuming your workspace contains only those three projects or any other projects are "closed".

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

3 replies

Pavel A.

Window -> Preferences -> General -> Workspace -> Build order

mattias norlander
ST Technical Moderator

What Pavel suggests can work. It will build the active build configuration for all projects that are currently "open" in the workspace.

Another approach if you have more than the three projects in the workspace. But want to make sure that ONLY these three projects are built in a well-defined order is to setup dependencies between the projects.

Select the project which is built last in your chain. Properties > C/C++ General > Paths and Symbols > References.

Here you can select which project and which build configuration depend on and use "Move Up/Down" to select order.

That said, Pavels solution may be simpler assuming your workspace contains only those three projects or any other projects are "closed".

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
slu.7
slu.7Author
Associate II

thanks for your help