r/cpp • • 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

85 comments sorted by

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_dependency not 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.

1

u/Expert-Map-1126 vcpkg maintainer BillyONeal Apr 10 '26

> The problem with them is they're CMake-only.

This is why my (and vcpkg's, though this call was not just from me) position has been "we will encourage CPS as soon as there's a build system other than CMake that understands it". Until then we are in "that there are both pkg-config and CMake config paths to consume many dependencies already creates many Many problems and we don't want to make that worse."

1

u/not_a_novel_account cmake dev Apr 10 '26

Oh shit, sorry, I'm Vito, we've had this discussion before on #include. Of course, we don't expect vcpkg (or anyone) to move its already difficult maintenance burden until this is far more compelling.

1

u/Expert-Map-1126 vcpkg maintainer BillyONeal Apr 10 '26

This is what happens when Bill deletes his Reddit account in protest of spez, then years later Reddit becomes the only place to get news about the several days long regional power outage and Reddit assigns a name. :(