How to setup cmake on windows

25,611

Visual Studio 11 Win64 is the wrong generator for Visual Studio 2013. You need to use Visual Studio 12 2013 Win64 if you are using cmake-3.x or Visual Studio 12 Win64 for cmake-2.8.x. A list of the visual studio generators is here.

Share:
25,611

Related videos on Youtube

anthony corrado
Author by

anthony corrado

Updated on October 08, 2020

Comments

  • anthony corrado
    anthony corrado over 3 years

    I'm trying to compile a program that requires Cmake and boost on windows. I installed visual studio 2013 express and I cant get cmake to compile the program.

    cmake -G "Visual Studio 11 Win64" ..
    
    -- The C compiler identification is unknown
    -- The CXX compiler identification is unknow
    CMake Error in :
    No CMAKE_C_COMPILER could be found.
    
    CMake Error in :
    No CMAKE_CXX_COMPILER could be found.
    
    • UnholySheep
      UnholySheep over 9 years
      have you actually run "Configure" on the cmake file? you might also consider using cmake-gui.exe
    • UnholySheep
      UnholySheep over 9 years
      Well that does not change the fact that configure is failing for you (for whatever reason), and therefore you cannot generate a visual studio project. The best person to ask would still be the author of the program as she/he might now what can cause this error
    • drescherjm
      drescherjm over 9 years
      Visual Studio 11 Win64 is the wrong generator for Visual Studio 2013. I believe you need Visual Studio 12 2013 Win64 if you are using cmake-3.x.
  • anthony corrado
    anthony corrado over 9 years
    I realized that late last night. I still have to figure out what I did wrong when I installed boost though.