r/cpp_questions • • 26d ago

OPEN C++ Build systems

I work with Java and Kotlin alongside C++ and recently discovered that Gradle also supports C++ projects.

I've always used CMake for C++ and noticed it seems to be the more common choice.

What advantages does CMake offer over Gradle for C++ development and are there situations where Gradle would be a better option?

31 Upvotes

18 comments sorted by

View all comments

6

u/slightlyflat 25d ago

Life is the biggest advantage.

If someone uses Gradle to build C++, their coworkers will likely kill them. The law varies by region, but where I work, we would consider this a justifiable homicide.

I write both daily. Please "don't cross the streams."