Hacker News new | ask | show | jobs
by jpc0 9 days ago
I would argue CMake gets the job done in 99% of cases. Use whatever you want underneath it.

If you want cargo you also need the entire ecosystem to also adopt making everything MIT/BSD and that isn’t happening and no offence but if a project is setup and using CMake features from this decade you can just use CMake FetchContent to include it and build it.

Even boost can be included this way.

Why would you want to add more dependencies that are brittle and break?

2 comments

Fetchcontent is fine for small projects but my experience has been for more complex projects vcpkg integrates better with CI and deps that use e.g. meson or autotools. Plus it supports binary caching to keep (re)compile times from getting insane.
cmake is bad for verrryyyy large codebases because it doesn't have good support for distributed compilation and caching. You need buck2 and/or bazel at that point. Despite being a small minority of codebases, they have a disproportionate amount of programmers (Google monorepo is tens of thousands of people or more).

C++ can't standardize something that'd break these use cases so packaging is unlikely to ever be fixed.

The C++ commitee needs to figure out how to describe project metadata in a way that can be read by many different tools, kind of like Python did it. Being able to specify that you depend on a project is still useful even if the delivery mechanism is an OS package manager.
That was part of what people burned out on working on, so I wouldn't expect it any time soon.

https://www.reddit.com/r/cpp/comments/1hgpz0y/wg21_aka_c_sta... is the history if you're curious.