Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup cmake on windows

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.
like image 667
anthony corrado Avatar asked Jan 10 '23 14:01

anthony corrado


1 Answers

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.

like image 140
drescherjm Avatar answered Jan 12 '23 03:01

drescherjm