[CMake] can't generate WindowsPhone 8.1 projects

Gilles Khouzam Gilles.Khouzam at microsoft.com
Mon Mar 14 16:40:39 EDT 2016


Hi Aaron

What happens if you sent the compiler to Visual Studio 12 2013 ARM?

I’ll try this on my side and see if I can repro.

Which version of CMake are you running?

Thanks
~Gilles

From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Aaron Simmons via CMake
Sent: Monday, March 14, 2016 10:34
To: cmake at cmake.org
Subject: Re: [CMake] can't generate WindowsPhone 8.1 projects

I looked at the CMAKE_C_COMPILER for WindowsStore/10.0, and its printing
   C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_arm/cl.exe
which is correct!

So I think the problem is that for WindowsPhone CMake is looking up the Visual Studio version incorrectly.


Aaron Simmons
Application Software Engineer at Sensory, Inc

On Mon, Mar 14, 2016 at 11:30 AM, Aaron Simmons <asimmons at sensoryinc.com<mailto:asimmons at sensoryinc.com>> wrote:
In the successful case, I printed out CMAKE_C_COMPILER and found that its pointing to
   C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/WPSDK/WP80/bin/x86_arm/cl.exe
even though I'm using the generator for "Visual Studio 14 2015 ARM".

I think its not working because there isn't a WindowsPhone/8.1 compiler in that old Visual Studio.  (I'm unsure as to why WindowsStore/10.0 works.)

I have Visual Studio 11, 12, and 14 on my system.  How can I tell CMake to use the right one?


Aaron Simmons
Application Software Engineer at Sensory, Inc

On Mon, Mar 14, 2016 at 11:11 AM, Aaron Simmons <asimmons at sensoryinc.com<mailto:asimmons at sensoryinc.com>> wrote:
With this CMakeLists.txt:
       cmake_minimum_required(VERSION 3.5.0)
       project(TestLib)
and this command:
       cmake .. -G "Visual Studio 14 2015 ARM" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1
I get this output:
       -- The C compiler identification is unknown
       -- The CXX compiler identification is unknown
       CMake Error at CMakeLists.txt:2 (project):
         No CMAKE_C_COMPILER could be found.

       CMake Error at CMakeLists.txt:2 (project):
         No CMAKE_CXX_COMPILER could be found.

Oddly, using WindowsPhone/8.0 or WindowsStore/10.0 works.  I'm not sure how to debug this problem.  Any pointers?



Thanks,
aaron


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160314/03686c56/attachment-0001.html>


More information about the CMake mailing list