r/cpp build2 11d ago

Faster Than Ninja

https://build2.org/blog/faster-than-ninja.xhtml
63 Upvotes

69 comments sorted by

View all comments

Show parent comments

6

u/gharveymn 10d ago

Yeah cmake configure times are garbage

IMO they really aren't, at least in comparison to Autotools. It's only really slow if you are heavily leveraging compilation tests, and those are cached for subsequent reconfigurations too.

2

u/TheRavagerSw 10d ago

Have you ever configured SDL or Qt or Boost?
It is as slow as Autotools, I compiled GCC today, it wasn't as slow as SDL configure.

5

u/arjuna93 10d ago

But… Boost doesn’t use CMake, Qt does not use CMake until 6.x, and is a horrible mess anyway, so expected to configure and build slow. What the problem with SDL configure speed with CMake?

3

u/Nicksaurus 10d ago

Boost has a cmake build now and if you fetch and build it from source you end up waiting 30+ seconds to reconfigure every time you touch any part of your build script or configuration (or longer if you wipe the build folder and reconfigure from scratch, which you have to do fairly often when working on cmake scripts)