# 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:** 2

<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, 8:21am UTC](https://discourse.cmake.org/t/using-two-different-visual-studio-installations-as-generator/14465/2 "2025-07-30T08:21:06Z")

</div>

It may be related to this problem:

> [@Cannot set toolset when configuring with the Visual Studio 2022 generator.](https://discourse.cmake.org/t/cannot-set-toolset-when-configuring-with-the-visual-studio-2022-generator/10160):
>
> I have installed on my machine Visual Studio 2022 17.9 with the MSVC toolsets 14.36, 14.38 and 14.39. I created with Visual Studio a new “CMake project” and after configuring it with cmake -S . -B build -G "Visual Studio 17 2022" I noticed that CMake is choosing MSVC 14.36; the oldest one. I tried to manually choose the latest toolset by passing -T v143,version=14.39 but every time it fails with No CMAKE\_C/CXX\_COMPILER could be found.. I tried the same while under the Visual Studio developer Po…

---

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