r/cpp • u/TheRavagerSw • Sep 24 '26
Why we should standardise on CPS
To enable any collaboration in the industry, some "social contract" must be signed by all of us.
One of the rules of this contract is binary packaging, to put it simply, if you are a library author you need to either have clean definition on what package you expect to consume or have a "scriptless" implementation like imgui.
If the library exports a pkgconf package, but its dependency exports something else your build will not work. Why should it, what you do makes no sense.
Currently I'm literally forced to package every single dependency I have, which is fine in principle as you want to own your dependencies for security and licensing reasons... But I CAN'T UPSTREAM MY CHANGES which is not fine.
The current situation is a disease, please do remember my talk when you try to build a library like dawn or SDL and it vendors dozens of libraries to create a giant shared library after a long slow build.
View all comments
Show parent comment
1
u/ABlockInTheChain Oct 20 '26
The thing is already know about this limitation and don't need the documentation anymore. If I care about helping future people who will encounter the same difficulties in the future I also know this thread will be indexed by search engines. I don't know how documentation site is built and how one would contribute to it in the first place and if such contributions are even accepted at all.
Furthermore I've discovered that my problem is systemic. I have to deal with a range of packages, some of which use find_package in module mode, and some of which use find_package in config mode, and some which could use either depending on the build environment.
Now that I know that I can't use CPS at all until my entire transitive dependency graph is updated to compatible naming schemes that means I can write this technology off for the rest of my career and stop paying attention to it.