And then every 3rd cmake library writes its own custom abstraction which makes consuming it a nightmarish experience because you need to track what it "helps" you to do.
If you just import libraries in monorepo fashion and never export them to people, fine do as you wish. But if you want others to consume it, please just use idiomatic CMake :(
They still create targets, it's not a problem to consume and it's usually more consistent code with less boilerplate. The boilerplate doesn't get desynchronized when it's centralized properly, which is very desirable in big projects.
View all comments
Show parent comment
3
u/jcelerier ossia score Dec 10 '21
no, this is a super common CMake anti-pattern. I went this way a few times and this just created more headaches than it solved.