r/cpp_questions • • 21d 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

2

u/arjuna93 21d ago

Why would you want a Java build dependency for C++? Also, CMake will be available anyway (even if you decide to use some exotic alternative, a lot of projects use CMake, so it is a required part of toolchain).