CMakePresets CMake does not find MSVC when Ninja Generator is selected
Hey, I noticed that CMake is not able to find the MSVC Compiler when Generator Ninja is selected from CMakePresets.json. However when VS 2022 Generator is selected in the Preset MSVC is detected properly. The project is generated via CMAKE GUI (3.22.1)
Strangely when generating this project via VS 2022, in both cases (Ninja and VS 2022) the MSVC compiler is detected properly. (or do i have to specify the compiler manually? I thought this is only required on cross compilation builds not on native builds)
I attached a simple test project to reproduce.