[Solved] CMake Error: Error: generator : Unix Makefiles

The following problems occurred when using cmake – G “MinGW makefiles”

CMake Error: Error: generator : Unix Makefiles
Does not match the generator used previously: MinGW Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

The reason is that it has been generated before, and other problems have not been deleted before regeneration
Solution:
1. Delete the previously generated files inside the build file
2. Create a new folder, cd to the new folder and re-cmake

Read More: