Build2, a Cargo-like dependency and build manager for C/C++
The problem with these build tools is never the tool itself (though admittedly I never get far enough to test them). It&#x27;s the lack of packages in the repositories that back them up. For build2, the central repository is <a href="https:&#x2F;&#x2F;cppget.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cppget.org&#x2F;</a> which has 24 packages. 24!! For comparison, npm has more than 600,000 and PyPI has more than 140,000. Now of course not all of those are great quality, but it does illustrate the scale of the problem.<p>More concretely: As a go-to example for these repos I always look for Google&#x27;s protobuf library. Most projects I work on depend on three or four high-level libraries which, in turn, depend on protobuf; if even protobuf isn&#x27;t there (as is the case at cppget.org) then it&#x27;s hopeless that those higher-level libraries will be.<p>So far, the best native package manager I&#x27;ve come across is vcpkg [1]. I hate that it&#x27;s made by Microsoft, and I hate that it uses CMake, but there is no easier to build and use e.g. gRPC on Windows. They recently added Linux and Mac support (static linking only). Edit: for fair comparison, it has just over 700 packages.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;vcpkg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;vcpkg</a>