Cmake is Unable to Configure Project for Visual Studios 10 amd64

人盡茶涼 提交于 2019-11-29 07:19:41

I had similar issues on Win7, and was getting the same error - The C compiler "cl.exe" is not able to compile a simple test program.

The solution that worked for me :

  1. On Windows Donot run cmake on the cygwin terminal.
  2. Run it from the command prompt, AND also ensure that you have admin rights, In windows 7 you can start command prompt as administrator by going to Start->All programs->Accessories-> (Right Click on Command Prompt) and Select "Run as administrator"

Then run cmake <your source> Worked like a charm for me.

I found that my x64 compilers were destroyed by installing SP 1. Try this update to restore them :

http://www.microsoft.com/en-us/download/details.aspx?id=4422

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!