HEP-SoC / SoCMake

CMake based hardware build system
https://hep-soc.github.io/SoCMake/
GNU Lesser General Public License v3.0
8 stars 1 forks source link

Dependencies ending up in two different places after second build #15

Closed mksoc closed 3 months ago

mksoc commented 4 months ago

In the example of a project with a single dependency dep0, for some reason, on the first build, the sub-dependencies are nested (correctly I would say) like this:

deps/
├─ _deps/
│  ├─ dep0-src/
│  │  ├─ deps/
│  │  │  ├─ _deps/
│  │  │  │  ├─ dep1-src/
│  │  │  │  ├─ dep2-src/
│  │  │  │  ├─ .../

But after running a make command a second time, something triggers an update of all the dependencies that end up copied flat under the root, like so:

deps/
├─ _deps/
│  ├─ dep0-src/
│  ├─ dep1-src/
│  ├─ dep2-src/
│  ├─ .../

@benoitdenkinger do you have any idea why? It started only after the last merge request on TriglaV.