CMAKE_COMPILER_IS_MINGW removed?

Just noticed that CMAKE_COMPILER_IS_MINGW disappeared between the 3.21.4 and 3.22 releases. Was this a feature?

Reason for asking: The libsdl CMake build depends on CMAKE_COMPILER_IS_MINGW to detect whether to nag the developer for the $ENV{DXDEV_DIR} environment variable. The build is broken without CMAKE_COMPILER_IS_MINGW as of 3.22.

What’s the proper solution that is backwardly compatible with earlier CMake versions? I suspect it’s simply checking MINGW, but I have to ask.

Looks like it changed in MR 6538.

The undocumented CMAKE_COMPILER_IS_MINGW internal variable is now unused, so remove it too.

https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6538