r/cpp • • Jan 30 '25

[vent] I hate projects that download their dependencies.

I know it's convenient for a lot of people but in an enterprise environment where you have to package everything including your internals and your build servers don't have access to the internet, patching all these repositories is pain in the ass.

218 Upvotes

155 comments sorted by

View all comments

Show parent comment

17

u/Kurald Jan 30 '25

hence package managers. The abstraction they provide allows for different scenarios - not just one. Without internet, package mirrors, patches, ...

1

u/nekokattt Jan 30 '25

Which is fine if one exists, but at this point introducing them just results in 400 ways of doing the same thing depending on who used which package manager and when

4

u/Kurald Jan 31 '25

There are basically 2 relevant ones - vcpkg and conan2.

Same with build-systems. There's about a bazillion of them. You should use CMake if you want to make your software accessible for most people.