# Using two different Visual Studio installations as generator

**URL:** https://discourse.cmake.org/t/using-two-different-visual-studio-installations-as-generator/14465
**Category:** Usage
**Created:** [July 30, 2025, 6:33am UTC](https://discourse.cmake.org/t/using-two-different-visual-studio-installations-as-generator/14465 "2025-07-30T06:33:19Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Oodini](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/db5fbb/32.png) [@Oodini](https://discourse.cmake.org/u/Oodini)
#### Post date: [July 30, 2025, 10:17am UTC](https://discourse.cmake.org/t/using-two-different-visual-studio-installations-as-generator/14465/4 "2025-07-30T10:17:06Z")

</div>

I do have similar troubles:

> [@Can the VS 2019 generator be used if only VS2022 is installed?](https://discourse.cmake.org/t/can-the-vs-2019-generator-be-used-if-only-vs2022-is-installed/6972/4):
>
> For anyone else who finds themselves here, baffled, replace the "-G “Visual Studio 15 2017” or -G “Visual Studio 16 2019” option with -T v142. It will say “Building for: Visual Studio 17 2022” BUT when you open the .sln file it will say “Visual Studio 2019” and the toolset will be set to 2019.

---

_[View the full topic](https://discourse.cmake.org/t/using-two-different-visual-studio-installations-as-generator/14465)._
