title: Problems generating solution for VS 2017 with CMake
body: <p>So I installed Visual Studio 2017 yesterday. I also installed CMake 3.7.2 which supports VS 2017.</p>
  
  <p>My VS installation is with the <code>Game development with C++</code> workflow + a few other components:</p>
  
  <p><img src="https://i.imgur.com/QkzfWvv.png" alt="individual_components"></p>
  
  <p>I've also added the CMake stuff (but I don't think I even needed it - since I'm using CMake as a standalone tool to just generate the VS solutions) and MSBuild (I had <code>msbuild.exe</code> even before adding that component - so not sure what exactly does that additional component do).</p>
  
  <p>With VS 2015 I was able to just run <code>cmake .</code> from a normal command prompt for a solution.</p>
  
  <p>With VS 2017 the workflow changes - I've read <a href="https://blogs.msdn.microsoft.com/vcblog/2017/03/06/finding-the-visual-c-compiler-tools-in-visual-studio-2017/" rel="noreferrer">this post from Microsoft</a>.</p>
  
  <p>So I tried the following:</p>
  
  <ul>
  <li>I opened the <code>Developer Command Prompt for VS 2017</code> and from it I ran <code>cmake . -G "NMake Makefiles"</code>. Then running <code>cmake --build .</code> compiled everything properly.</li>
  <li><p>When I tried the following in the prompt: <code>cmake . -G "Visual Studio 15 2017 Win64"</code> to force the creation of a solution I got the following errors:</p>
  
  <pre><code>-- The C compiler identification is unknown
  -- The CXX compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (project):
    No CMAKE_C_COMPILER could be found.
  CMake Error at CMakeLists.txt:3 (project):
    No CMAKE_CXX_COMPILER could be found.
  -- Configuring incomplete, errors occurred!
  </code></pre></li>
  </ul>
  
  <p>I also tried setting up the environment using <a href="https://github.com/Microsoft/vswhere" rel="noreferrer">vswhere.exe</a> and running <code>vcvarsall.bat</code> like this:</p>
  
  <blockquote>
    <p>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64</p>
  </blockquote>
  
  <p>and again I could only generate NMake files and not a solution.</p>
  
  <p>So how can I get a solution?</p>
  
  <p>And why does <code>cl.exe</code> report <code>Version 19.10.25017</code> when it's in <code>VC\Tools\MSVC\14.10.25017\bin</code>?</p>