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
View all comments
Show parent comment
1
u/not_a_novel_account cmake dev Apr 10 '26
It does fix (1), although we also have an experimental feature which does automatic dep management for CMakeConfigs.
(2) is about general CMake usage, and CMakeConfigs are supposed be autogenerated anyway (putting aside the problem of
find_dependencynot being generated by default).The problem with them is they're CMake-only. CPS is still a generated machine interchange format, it's for tools to talk to other tools not for individual developers to write on their own, but it's not CMake-specific.
We've been working with devs from across the C++ ecosystem to ensure that there's an adoption path for everyone, not just CMake users. Every project will be able to use its build system of choice, and produce packaging metadata which can be consumed by any other build system.