<div dir="ltr">In the successful case, I printed out <font face="monospace, monospace">CMAKE_C_COMPILER</font> and found that its pointing to <div>   <font face="monospace, monospace">C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/WPSDK/WP80/bin/x86_arm/cl.exe</font></div><div>even though I'm using the generator for "Visual Studio 14 2015 ARM".</div><div><br></div><div>I think its not working because there isn't a <font face="monospace, monospace">WindowsPhone/8.1</font> compiler in that old Visual Studio.  (I'm unsure as to why <font face="monospace, monospace">WindowsStore/10.0</font> works.)</div><div><br></div><div>I have Visual Studio 11, 12, and 14 on my system.  How can I tell CMake to use the right one?</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Aaron Simmons<br></div>Application Software Engineer at Sensory, Inc<br><br></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 14, 2016 at 11:11 AM, Aaron Simmons <span dir="ltr"><<a href="mailto:asimmons@sensoryinc.com" target="_blank">asimmons@sensoryinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr">With this CMakeLists.txt:</div><div dir="ltr"><font face="monospace, monospace">       cmake_minimum_required(VERSION 3.5.0)</font></div><div dir="ltr"><font face="monospace, monospace">       project(TestLib)</font></div><div dir="ltr">and this command:</div><div dir="ltr"><font face="monospace, monospace">       cmake .. -G "Visual Studio 14 2015 ARM" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1</font></div><div dir="ltr">I get this output:</div><div dir="ltr"><font face="monospace, monospace">       -- The C compiler identification is unknown</font></div><div dir="ltr"><font face="monospace, monospace">       -- The CXX compiler identification is unknown</font></div><div dir="ltr"><font face="monospace, monospace">       CMake Error at CMakeLists.txt:2 (project):</font></div><div dir="ltr"><font face="monospace, monospace">         No CMAKE_C_COMPILER could be found.</font></div><div dir="ltr"><font face="monospace, monospace"><br></font></div><div dir="ltr"><font face="monospace, monospace">       CMake Error at CMakeLists.txt:2 (project):</font></div><div dir="ltr"><font face="monospace, monospace">         No CMAKE_CXX_COMPILER could be found.</font></div><div dir="ltr"><br></div><div>Oddly, using <span style="font-family:monospace,monospace">WindowsPhone/</span><span style="font-family:monospace,monospace">8.0</span> or <span style="font-family:monospace,monospace">WindowsStore/10.0</span> works.  I'm not sure how to debug this problem.  Any pointers?</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>aaron</div></div></div></div></div>
</div>
</blockquote></div><br></div>