| ▲ | superxpro12 3 hours ago | |
i'd like to welcome you to the hell that is c/c++ dependency management. Make? cmake? qmake? conf? autoconf? configure? autotools? submodules??? AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
| ▲ | bayindirh 2 hours ago | parent | next [-] | |
I'd just select a tool, vendor the libraries I need to the codebase and call it a day. Did these for Eigen, liboption++, Catch2, Easylogging++ (now archived and not maintained anymore, sadly). Build a simple makefile, and you're off to the races. At least, for my cases, that is. | ||
| ▲ | nelup20 2 hours ago | parent | prev | next [-] | |
Conan, Meson, Ninja, Bazel, meta-build tool / dependency manager #231 etc. etc. And then you have to deal with all the modern C++ and STL footguns. It never ends .·°՞(っ-ᯅ-ς)՞°·. | ||
| ▲ | account42 an hour ago | parent | prev | next [-] | |
I'll take all that over downloading and immediately executing random unreviewed code any day. | ||
| ▲ | skydhash 2 hours ago | parent | prev | next [-] | |
None of those (other than submodules which is just vendoring) does dependency management. They are more configuration management than anything. C, Python, Perl (and maybe ruby?) relies on flag switches and environment variables to find all the necessary files and modules for compiling/running a script. Cmake and autoconf just configure those. With NPM and Rust's focus on project's level dependencies, there's no longer emphasis on API stability. Instead we have breakage every months, forcing everyone on the upgrade treadmill. It's easier to audit C library because they focus mostly on security updates instead of redesigning the API for the nth time. | ||
| ▲ | SSLy 2 hours ago | parent | prev | next [-] | |
xmake, build2, whatever msvc and xcode insist upon… | ||
| ▲ | justinhj 2 hours ago | parent | prev [-] | |
vcpkg is pretty good. cmake is complex but very flexible. just need an llm to help and it's pretty much solved (if your dep is in autopkg) | ||