Ninja generator missing static library link dependency
When building the code from this repository with arm-none-eabi-gcc version 7-2018-Q2 on VScode, ninja version 1.9.0 and cake 3.16.0 on windows 10 the build fails. The code in the repository is only composed of layers of static libraries in a project with many diamond dependencies. You may need to build several times for the build to fail. A bug has also been filled in ninja here.
I am not a ninja expert so this is only an hypothesis but I observed that the ninja files generated by cmake do not show dependencies between the linking of the different libraries even if they depend on each other. L1 depends of L2 who depends of L3. Of course all files can compile at the same moment but the L2 should only be linked when L3 is completely built and linked and L1 only when L2 is built and linked. So from my understanding this would be a Cmake issue rather than a ninja issue.