<div dir="ltr"><div><div><div></div>I did some tests on different Windows versions in virtual machines. <br>On a fresh Windows 10 (and installed Visual Studio 2017 Community) cmake works fine and a compiler is found.<br>But on earlier versions: Windows 7, Windows 8.1, Windows Server 2012 - cmake always fails with error <br><pre class="gmail-m_-1735112872483642843gmail-m_5678204699400641836m_-6826800572662155100gmail-m_4446671496727992017gmail-m_-8866632752780338459gmail-m_6361438685560664156gmail-prettyprint" style="box-sizing:border-box;overflow:auto;font-family:monospace,sans-serif;font-size:11.64px;display:block;padding:0px 19.9375px 0.1em 0px;margin:0px;line-height:inherit;color:rgb(34,34,34);word-break:break-all;background-color:rgb(255,255,255);border-width:medium;border-style:none;border-color:currentcolor;border-radius:inherit;text-align:left;font-style:normal;font-weight:normal;white-space:pre-wrap;max-height:35em;min-height:2em;width:976.938px;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px"><code style="box-sizing:border-box;font-family:monospace,sans-serif;font-size:inherit;padding:0px;color:inherit;background-color:transparent;border-radius:0px;font-style:normal;font-weight:normal;white-space:pre-wrap"><span class="gmail-m_-1735112872483642843gmail-m_5678204699400641836m_-6826800572662155100gmail-m_4446671496727992017gmail-m_-8866632752780338459gmail-m_6361438685560664156gmail-typ" style="box-sizing:border-box;color:rgb(102,0,102)">"The</span><span class="gmail-m_-1735112872483642843gmail-m_5678204699400641836m_-6826800572662155100gmail-m_4446671496727992017gmail-m_-8866632752780338459gmail-m_6361438685560664156gmail-pln" style="box-sizing:border-box;color:rgb(0,0,0)"> CXX compiler identification </span><span class="gmail-m_-1735112872483642843gmail-m_5678204699400641836m_-6826800572662155100gmail-m_4446671496727992017gmail-m_-8866632752780338459gmail-m_6361438685560664156gmail-kwd" style="box-sizing:border-box;color:rgb(11,94,222)">is</span><span class="gmail-m_-1735112872483642843gmail-m_5678204699400641836m_-6826800572662155100gmail-m_4446671496727992017gmail-m_-8866632752780338459gmail-m_6361438685560664156gmail-pln" style="box-sizing:border-box;color:rgb(0,0,0)"> unknown"</span></code></pre><pre class="gmail-m_-1735112872483642843gmail-m_5678204699400641836m_-6826800572662155100gmail-m_4446671496727992017gmail-m_-8866632752780338459gmail-m_6361438685560664156gmail-prettyprint" style="box-sizing:border-box;overflow:auto;font-family:monospace,sans-serif;font-size:11.64px;display:block;padding:0px 19.9375px 0.1em 0px;margin:0px;line-height:inherit;color:rgb(34,34,34);word-break:break-all;background-color:rgb(255,255,255);border-width:medium;border-style:none;border-color:currentcolor;border-radius:inherit;text-align:left;font-style:normal;font-weight:normal;white-space:pre-wrap;max-height:35em;min-height:2em;width:976.938px;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px"><br></pre>So, the problem is not in different installation path, but in wrong method to find a compiler  in earlier Windows.<br><br><h3 class="gmail-m_-1735112872483642843gmail-iw"><span name="Nils Gladitz" class="gmail-m_-1735112872483642843gmail-gD">Nils Gladitz, t</span>he command, which you proposed, return nothing, even on a machine where a compiler found:<br></h3>vswhere -requires Microsoft.VisualStudio.Compone<wbr>nt.VC.Tools.x86.x64 -requires Microsoft.VisualStudio.Compone<wbr>nt.Windows10SDK</div><br></div><div><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 27, 2017 at 4:47 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On 03/27/2017 09:35 AM, Robert Maynard wrote:<br>
> So the real question is how did your compiler end up in the C drive<br>
> and not the alternative drive like mine. Do you run the visual studio<br>
> installer multiple times?<br>
<br>
</span>Did you have any of the VS 15 preview versions installed previously?<br>
<br>
For reference, VS 2017 does not have any registry entries.  Instead<br>
the VS installer tool provides a COM interface that applications must<br>
use to ask for the location(s) of VS installations.  We do this in<br>
cmVSSetupHelper [1].<br>
<br>
-Brad<br>
<br>
<br>
[1] <a href="https://gitlab.kitware.com/cmake/cmake/blob/v3.8.0-rc3/Source/cmVSSetupHelper.cxx" rel="noreferrer" target="_blank">https://gitlab.kitware.com/cma<wbr>ke/cmake/blob/v3.8.0-rc3/Sourc<wbr>e/cmVSSetupHelper.cxx</a><br>
<br>
</blockquote></div><br></div></div>