Why CMake pass '-MD -MT' flags to gcc c++ and clang++ while compiling on Linux?

To my knowledge, these seem to be MSVC’s runtime flags. I could not find them in GCC or clang’s manuals.

These flags are used to generate dependencies.
See GCC Preprocessor options.

2 Likes