I am trying to build a solution for MSVC++2010 using CMake. Since I installed Visual Studio 2012 that does not work anymore. CMake comes with the following error message: \"
I encounter the excatly same problem. I solved by add a command before cmake
call "C:/Program Files (x86)/VC/vcvarsall.bat" amd64
The path of vcvarsall.bat and the architecture maybe different on your computer.
According to Usage of vcvarsall.bat, this command is to set up proper environment variable for command-line compilation.