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”
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”