System is unknown to cmake, create: Platform/MINGW64_NT-10.0-19044

If you received the message, then you likely installed the generic “cmake” for gcc instead of the cmake specific to Msys2. For that you need to install “mingw-w64-x86_64-cmake”