Which will probably be never.

39 points
*

I mean, all cmake does is run some commands for you. You not understanding cmake errors (mostly) means you don’t understand the errors given to you by the C/C++ compiler.

permalink
report
reply
43 points

Partly, yes. But I also think their documentation is a bit hard do read. Maybe this will get better with time.

permalink
report
parent
reply
44 points

I use rust btw.

permalink
report
parent
reply
5 points

I use distcc, and do not have to take vacation for my programs to finish compiling.

permalink
report
parent
reply
10 points

Maybe this will get better with time.

Yes, just give it a few more decades.

permalink
report
parent
reply
25 points

CMake can also emit its own errors during the configure step though, particularly if you have complicated build logic and/or lots of external packages.

permalink
report
parent
reply
33 points

Did you know that there is a debugger in Jetbrains CLion (and I think VS as well) that allows you to step through your CMake scripts? As ridiculous as this may seem, actually it is really useful.

permalink
report
reply
7 points

Even in VS? Nice, gonna check that out.

permalink
report
parent
reply
10 points

Yeah, I wasn’t aware of that until I found this article claiming it to be available.

permalink
report
parent
reply
29 points

Life is and will always be better writing your own Makefiles. It’s literally so easy. I do not get the distaste. Cmake is arcane magic. Bazel is practically written in runes. Makefile is a just a glorified build script, but where you don’t have to use a bunch of if statements to avoid building everything each time.

permalink
report
reply
16 points
*

really anyone worth their salt should write perl code to generate makefiles depending on the phase of the moon and if you sacrificed a $chicken, a @chicken, or a %chicken at runtime.

permalink
report
parent
reply
6 points

That works until you need to support Visual Studio or Xcode. Then you either maintain their stuff manually too, or you get CMake to generate all three. I don’t love it but it solves the problem it’s meant to solve. The issue is people using it when they don’t need to.

permalink
report
parent
reply
3 points

Xcode implies MacOS, you can use make there too, just beware that some commandline tools take different arguments on BSDs.

permalink
report
parent
reply
3 points

I’m not familiar with either why can’t you use Make with VS or Xcode? Can you not set them up to have whatever build bind call Make ?

permalink
report
parent
reply
1 point

Tbh I’m not sure if you can. That’s proprietary IDEs for you.

permalink
report
parent
reply
1 point

You can build with mingw64 built with msvc and use more or less the same Makefile. As for Xcode… well, there’s not really a good reason to support Mac. On principle I wouldn’t even try

permalink
report
parent
reply
6 points
*

It’s one of those massively elegant concepts of the past that’s become unfashionable to learn pretty much just do to time and ubiquity.

permalink
report
parent
reply
4 points

Manual makefiles don’t scale though and you end up needing some other bootstrap framework pretty quick.

permalink
report
parent
reply
1 point

How the heck does a Makefile not scale??? That’s all it does!

permalink
report
parent
reply
3 points

this is fine until you need autotools which is worse than cmake

permalink
report
parent
reply
25 points

Grab a brush and put a little cmakeup.

permalink
report
reply
4 points

Wrong class, you’ll need cbrush.

permalink
report
parent
reply
1 point

UNDEFINED SYMBOL AAHDYVBBDJFUE804746BBBB

permalink
report
parent
reply
14 points
*

Thanks for the laugh.

That was also my experience, but it ended when I stopped using cmake.

I’m not mad at anyone for using cmake, but I consider myself blessed on each day that I don’t have to collaborate with them (on cmake).

Which is weird, because someone will have to pry a Makefile from my cold dead hands, someday.

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 806

    Posts

  • 12K

    Comments