Android: MINGW defined with Clang compiler on Windows host
Originally filed at https://github.com/android/ndk/issues/1581
The issue is that the compiler ID code that does compiler id (https://gitlab.kitware.com/cmake/cmake/-/blob/v3.21.2/Modules/CMakeDetermineCXXCompiler.cmake#L120-132) does not account for CMAKE_${lang}_COMPILER_TARGET
so it is only able to identify the default target when using Clang. This means that for a configuration that targets android will identify as MINGW when building on Windows because the default clang target on that host is windows.
Issue-created-by: @danalbert
Edited by Kitware Robot