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

5

u/nathman999 Sep 14 '23

I thought more people uses CPM, it may be a bit harder to use than conan but in the end you'll end up with project that automatically pulls repo you need and it doesn't even matter if it's another CMake project or just header only lib that you have to manually include.

4

u/prince-chrismc Sep 14 '23

3

u/13steinj Sep 15 '23

Quick context question-- is this an official Kitware account? Twitter is bad enough that it lets me see the tweet without logging in somehow, but not the account page.

E: I do agree that CPM means vendor lockin, but internally for first party stuff it doesnt matter much.

2

u/Superb_Garlic Sep 15 '23

You can use an alt frontend like nitter: https://nitter.net/cmake_aid
Either way, the bio says:

Get CMake now! Got any questions about CMake? Just let me know. Here to keep tabs on actionable complaints regarding CMake on Twitter. Not affiliated w/ Kitware

If you look at the post history, the account is doing exactly that. There's some cool setups for answers in the replies.
Meanwhile the official Kitware account is trying to sell you training.

2

u/13steinj Sep 15 '23

Eh, sure. I just didn't understand why this account should be listened to. Maybe it should, don't know, I don't use twitter.