This can be used e.g. for building Qt without any MSYS installation, and should also work for cmake, if using the mingw makefiles generator.