Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake fails while trying to generate a Visual Studio 2012 ARM configuration

I'm trying to build CLucene library *v 2.3.3.2) for WinRT using the CMake tool, v 2.8.11.2. In the specify Generator for this project, I select Visual Studio 12 ARM. I have VS 2012 Ultimate installed. When I select the "Use default native compilers", and then press Generate, I get the following errors:

CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 12 ARM". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: Could not find cmake module file:c:/CLucene-ARM/CMakeFiles/2.8.11.2/CMakeCCompiler.cmake CMake Error: Could not find cmake module file:c:/CLucene-ARM/CMakeFiles/2.8.11.2/CMakeCXXCompiler.cmake

I thought it's not able to find the C++ compiler, so even if I manually set the C and C++ compilers to this value in the other "Specify native compilers" to C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_arm/cl.exe, I get the same error above.

I've browsed a lot of posts, but haven't seen anyone face this issue with VS2012 Ultimate. I did come across that some people had a similar issue for VS 2012 Express, but it was mentioned that it'd be fixed in CMake v2.8.11, but it doesn't appear to be the case.

I'd appreciate if someone can point out if I'm missing something here, or I need to point to the right compilers?

Thanks in advance, Asheesh

like image 211
ash1977 Avatar asked Jul 05 '13 19:07

ash1977


1 Answers

Visual C++ 2012 is called Visual Studio 11 in cmake. It is very confusing.

Try to select the Visual Studio 11 ARM target.

like image 126
yrnkrn Avatar answered Oct 30 '22 12:10

yrnkrn