Following situation:
I have a “portable” (meaning it wasn’t installed) VS and the environment is already set up similar to vcvars env (Meaning it works without problems for Ninja & MSBuild).
I would like to run CMake configure with -G “Visual Studio 2022”. I tried providing CMAKE_GENERATOR_INSTANCE etc but CMake complains/errors that the version in that path is not findable with vswhere. Is there a way to force CMake to just generate the project without doing further VS related tests and just trust the user that it will work (maybe setting some extra vars)? I mean in the end it CMake doesn’t need to know all the Details about the VS installation.