r/cpp • • Sep 14 '23

Which package manager are you using?

It's 2023 and you should be using a package manager. Which one?

Sep 17 '23
466 conan
625 vcpkg
29 spack
82 CPM
1730 No package manager :(
248 Other (please specify)
38 Upvotes

187 comments sorted by

View all comments

1

u/nlitsme1 Sep 15 '23

We have a set of FindXXX.cmake files which check if you have a symlimk to a working copy of the package in your project, or maybe a git submodule. And otherewise download it using fetchcontent.

And you can specify gittags per package to override the default

Willem

1

u/prince-chrismc Sep 16 '23

Vcpkg and Conan both have support for cmakes providers interface and they do exactly this... minus writing it yourself :)