The conversation

Lessons learnedExperience excerpt · English

I learned these commands when I was 12 years old, at that time building a CMake project always …

… I learned these commands when I was 12 years old, at that time building a CMake project always seamed an impossible task to me, they are all different and not standard. Anyway at work I use CMake for the fact that I don't publish my software openly thus it doesn't really matter.

Original discussionWhy CMake sucks (2021)90 source comments · at import
4

Community replies 0

No community replies yet. Add your perspective.

Replies from the source 4

Direct replies available in this import. Original-language excerpts.

PA

Yeah, I think it's underappreciated by developers how nice autotools makes the end user experience. Before I was a developer, I had the same experience trying to build cmake project. They just never seemed to work right.

Full original
PR

If it works, autotools is fine. I've had to wade through a bunch of autotooled projects for which it didn't work. Those scripts are no fun to debug.

Full original
PA

I agree that Autotools is fine, but the CMake equivalent of your snippet is not that far with CMake: cmake --CMAKE_INSTALL_PREFIX=/usr/local -Bbuild -S. cmake --build build --target install --parallel $(nproc)

Full original
RL

The Autotools do have dependencies: they require a functional Unix platform to run, including a shell and a fair number of common command-line tools. This is the number one reason people use CMake. It's a single binary that runs on every platform with no external dependencies, notably including Microsoft Windows. This makes it much more portable. CMake is itself a shell.

Full original
Continue on Hacker News

Respect different perspectives. Share concrete experiences.

Sign in to post, reply, repost, and quote.