Hi,
Please try checking the output window (View->Output) for the complete build log. It should contain more information about the error, explaining what exactly went wrong.
If you are not sure, please share the entire log and we will help you understand it.
P.S. Please consider using MSBuild or Advanced CMake instead of GNU Make. It is much better integrated with the VS GUI and will have a much lower chance of random failures due to misaligned settings.