This is interesting to me. I don't exactly remember the arguments, for Linux, Linus was always very clearly against C++. He could have also chosen Gtk, and then write the app in C.
Originally it was C and used GTK+, but cross platform needs drove it to Qt and thus C++. And CMake is the most popular cross-platform C/C++ (meta) build tool, so no surprise there.
This is interesting to me. I don't exactly remember the arguments, for Linux, Linus was always very clearly against C++. He could have also chosen Gtk, and then write the app in C.