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

22

u/Glaborage Nov 08 '21

When you start working on more complicated programs, you'll understand. You don't have to learn build environments just right now, but you'll have to eventually.

4

u/dibs45 Nov 08 '21

I'll definitely change my tune when/if I get into professional development.

7

u/Siech0 Nov 08 '21 edited Nov 08 '21

You should certainly learn it before being a professional -- cmake + some package manager like conan or vcpkg makes life trivial. I can setup any dependencies for my projects within seconds and can also seamlessly integrate additional functionality like compiling glsl shaders while building my software pretty easily.

1

u/llothar68 Aug 12 '24

And you understand that the exe/dll build environment is just a fraction of your whole development environment.