# CMAKE\_COMPILER\_IS\_MINGW removed?

**URL:** https://discourse.cmake.org/t/cmake-compiler-is-mingw-removed/4539
**Category:** Code
**Created:** [November 24, 2021, 12:15am UTC](https://discourse.cmake.org/t/cmake-compiler-is-mingw-removed/4539 "2021-11-24T00:15:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Scott\_Michel](https://discourse.cmake.org/user_avatar/discourse.cmake.org/scott_michel/32/946_2.png) [@Scott\_Michel](https://discourse.cmake.org/u/Scott_Michel)
#### Post date: [November 24, 2021, 12:15am UTC](https://discourse.cmake.org/t/cmake-compiler-is-mingw-removed/4539/1 "2021-11-24T00:15:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![fdk17](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@fdk17](https://discourse.cmake.org/u/fdk17)
#### Post date: [November 24, 2021, 3:44am UTC](https://discourse.cmake.org/t/cmake-compiler-is-mingw-removed/4539/2 "2021-11-24T03:44:10Z")

</div>

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](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6538)
