presets: Should the environment variables in presets affect CMake itself
Hello
I tried setting the CMAKE_GENERATOR
Env. Variable in a CMake Preset. To my surprise it did not affect the configuration.
"environment": {
"CMAKE_GENERATOR": "Ninja"
}
I am not sure if this is a misunderstanding or a bug. I would expect all env Variables like CXXFLAGS
and CMAKE_GENERATOR
to work like they had been set before calling CMake (With possibly a few exceptions like CMAKE_PROGRAM_PATH
).
Either the docs to the environment
section needs to be improved or the behavior more intuitive.