Could not find any instance of Visual Studio

@Angew, thank you for the suggestion.

In the office we use VS2017, VS2019 and VS2022. I regularly open a VS2017 or VS2019 solution with VS2022. During the open it asks me if I want to use the old format or convert to VS2022. This implies to me that VS has non-destructive backwards compatibility (/chuckle - words I never thought I would use when describing Microsoft.)

However I think the key point that you and the others are making is:

  1. CMake can only generate solution files for an installed version of VS
  2. VS2026 isn’t supported until CMake 4.2.0
  3. I could install the appropriate C++ toolset, i.e. VS 2022 v143 and it might take care of my problem.

I will give this a try. Thank you.