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 <asimm...@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 <asimm...@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
>>
>
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to