CMake can recognize `MINGW` flag, so I think `IF(MINGW)` is short, cleaner, and more specific.