Using quotes when setting CMAKE_GENERATOR_INSTANCE as environment variable will not find Visual Studio
When setting CMAKE_GENERATOR_INSTANCE environment variable like this
set CMAKE_GENERATOR_INSTANCE="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
will confuse CMake, it will output: "could not find specified instance of Visual Studio".
The problem is that at cmVSSetupHelper.cxx#L374
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise"
and ""C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise""
will be compared, which are not equal (note double quoting).
The workaround is to set CMAKE_GENERATOR_INSTANCE without using quotes.
Expected behavior: CMake finds Visual Studio instance with or without quotes for value of CMAKE_GENERATOR_INSTANCE.