Cmake is Unable to Configure Project for Visual Studios 10 amd64

前端 未结 2 717
庸人自扰
庸人自扰 2020-12-18 05:44

I am trying to get CMAKE to create a project for msvc 10 express edition for x64 architecture. I have both MSVC 2010 Express and Windows SDK 7.1 installed.

If I s

2条回答
  •  温柔的废话
    2020-12-18 06:20

    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 Worked like a charm for me.

提交回复
热议问题