Error while configuring CMake project: Running ‘nmake’ ‘-?’ failed

The solution was to append -G "MinGW Makefiles" to cmake -S . -B Build command. As Tsyvarev suggested I looked more into generators and found out that setting the flags doesn’t imply which generator will be used. So manually setting the flags solved the problem for me.

Leave a Comment