While doing some work with Ninja, I noticed this section of their docs on Dynamic Dependencies. That seems ideal for C++20 modules, but I didn’t think CMake used it. Does it?
I’m just curious how things worked.
While doing some work with Ninja, I noticed this section of their docs on Dynamic Dependencies. That seems ideal for C++20 modules, but I didn’t think CMake used it. Does it?
I’m just curious how things worked.
Yes, it is used for C++ modules. It was originally contributed by @brad.king to support Fortran module compilation; C++ module compilation is isomorphic in the build graph operations required for a correct build (but obviously different in the details).