Re:How to Structure C Projects: These Best Practices Worked ...
by UncleEntity on Friday March 08, 2024 @02:02PM
(#39644754)
> ...not least of which being that it relies on dependency fulfilment order which can be non-deterministic (e.g. if you pass -j).
Didn't actually know that was a thing until I accidentally ran into it yesterday when I ran the make command in the wrong terminal window and the build was very, very unhappy.
At least it didn't bork my entire /home directory like that time we don't talk about...
My general rule is Make for simple things and CMake if it involves distro-packed library deps or I'm building python modules with complicated enough builds that I don't wan't to beat the dead horse of distutils into submission.
Honestly, if I can't tell what the build system is doing without having to ask google then it's way too complicated.
Didn't actually know that was a thing until I accidentally ran into it yesterday when I ran the make command in the wrong terminal window and the build was very, very unhappy.
At least it didn't bork my entire /home directory like that time we don't talk about...
My general rule is Make for simple things and CMake if it involves distro-packed library deps or I'm building python modules with complicated enough builds that I don't wan't to beat the dead horse of distutils into submission.
Honestly, if I can't tell what the build system is doing without having to ask google then it's way too complicated.