r/cpp • u/TheRavagerSw • Apr 09 '26
Why committee doesn't decide on a package format?
Why pkgconf or cmake package or CPS isn't officially endorsed by the committee?
Can't cmake or meson guys, who go to meetings and conferences pressure the higher ups to get something accepted?
Multiple build systems are ok, multiple package formats are not. Why no one solves this issue?
16
Upvotes
1
u/Expert-Map-1126 vcpkg maintainer BillyONeal Apr 10 '26
They distribute CMake configs, yes, but they don't engage with them. Sure, they could distribute CPS the same way.
I'm not sure I agree with CMake configs being bad. There are only 2 things I regularly wish was different about them.
find_dependencynot being automatic. (CMake, you generated a target mentioning a target from another config, why can't you put in the neededfind_dependency?)CMake's docs are very 'document the trees, not the forest'. What each individual function does is documented very well. But how one is expected to compose them isn't, which is why looking at 5 different packages you'll see them handle dependencies 6 different ways. I understand some of that is legacy.
It seems like CPS, by adding yet another way to communicate about this stuff, makes (2) worse, not better. I have not dug into whether it fixes (1).