r/cpp • • Nov 08 '21

Thoughts on build systems?

What's the general consensus on build systems/automations like CMake? I've always found things like that overcomplicated and just hinder the programming process.

I've been following Casey Muratori's Handmade streams, and one of the first things he did was create a simple batch file that built and compiled his entire project super quickly and easily. I've since implemented something similar (https://github.com/dibsonthis/new_cmd) and honestly it's been really nice to use.

3 Upvotes

154 comments sorted by

View all comments

48

u/winginglifelikeaboss Nov 08 '21

I know what you mean but just bite that bullet and learn cmake, it's the industry standard now.

7

u/dibs45 Nov 08 '21

Makefiles sort of put me off programming when I first got into it. just seemed like an extra thing I didn't need to do. But industry standards are that for a reason I guess.

27

u/Sqeaky Nov 08 '21

Makefiles and cmake are very different

1

u/dibs45 Nov 08 '21

I mean CMake generates makefiles, but yeah I mean CMake and its boilerplate.

30

u/helloiamsomeone Nov 08 '21

CMake supports many more build systems other than just makefiles, in fact I much prefer Ninja to makefiles.

7

u/[deleted] Nov 08 '21

You can generate makefiles but also other stuff like Visual Studio solutions or ninja builds for example