> Dependency friction in C++ is so punishing that authors advertise “header-only, zero dependencies!”
This article kinda sums up all frustrations I have with C++. Vcpkg seemed like a good fix at the time, but it needs so much more improvement and adoption.
A lot of good solutions to the raised issues in the article require us to rip the bandaid off, however I believe the community built around C++ has built their systems around the premise that it must remain stable and predictable.
Vcpkg solved most of my problems in a windows env - vs+msbuild+vcpkg in manifest mode. It is also not really intrusive, just one json file. Auto link is very useful. I am very happy when I see a dependency is available via vcpkg.
Unfortunately, vcpkg is not (in practical sense) available for operating systems, it's a windows-only solution.
I use Spack, from my academic years.
My only pain point with vcpkg is the team's reluctance, or lack of resources (in a 4 trillion valued company(!)), to make the experience at least as nice as using NuGET, across VS and VSCode.
Note that Clion does exactly this for vcpkg.
Yeah, and where are all these zero dependencies libraries that implement TLS, JWT handling, Database Connection? Are here with us?
Vcpkg was really hurt by skipping a release, without any communication, even ignoring tickets. We thought that our single source of dependencies was silently killed.
I can not express how disinterested I am in using a Microsoft Visual C++ package manager. There will always be a large contingent of C++ users who won't touch vcpkg with a 10 foot pole.
Anyway I don't understand the aversion to just using submodules. What we need is a decent standard build system, not a package manager. We have CMake which is wide-spread but garbage, and we have Meson which is pretty good but not as widely adopted. If every library had a meson.build file I'd be mostly happy with just having submodules to them in my subprojects/ dir.