MINGW

From Get docs
Cmake/docs/3.21/variable/mingw


MINGW

New in version 3.2.


True when using MinGW

Set to true when the compiler is some version of MinGW.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/MINGW.html