title: Using Visual studio build tools with CMake, Windows
body: <p>I have installed the Visual Studio 17 build tools, and I have opened a VSCode terminal (note, I didn't install the full visual studio IDE).</p>
  <p>I would like to run <code>cmake -G &quot;Visual Studio 17 2022&quot; -S &lt;something&gt; -B &lt;something-else&gt;</code>, but I get the error</p>
  <pre><code>CMake Error at CMakeLists.txt:2 (project):
    Generator
  
      Visual Studio 17 2022
  
    could not find any instance of Visual Studio.
  </code></pre>
  <p>What could be wrong and how can I fix this? Thanks!</p>
  <hr />
  <p>Context: it would solve a problem I have with running cmake with <code>-G &quot;MinGW Makefiles&quot;</code>, if my project path contains ò, à, è and so on.</p>