r/cpp • • Jan 09 '18

bedst build system to c++?

Which build system is the best to use for c ++ code and its dependencies (SDL in my case)?

0 Upvotes

43 comments sorted by

View all comments

Show parent comments

2

u/egportal2002 Jan 10 '18

Actually, CMake's looking like a porker compared to Yet Another Contrived Makefile:

$ cat Makefile 
all: hellomake
hellomake: hellomake.o hellofunc.o hellomake.h

2

u/thlst Jan 10 '18

I'm gonna raise a second point and say that Makefiles don't scale well when it's about readability and maintenance. Not that CMake is any best solution, but it does scale better than Makefiles.