Write Visual Studio Compiler & SDK information into the cache
Hi there,
I'am using visual studio code with cmake for c/c++ development and started an extension with supports the cmake server in a multi-workspace environment. For proper auto-complete support, the VSCode cpp extension provides an API, where the compilerPath and the windowsSdkVersion can be set.
By default, CMake doesn't write the information into the cache, so that the server can access it. It would be nice if CMake can write the following variables into the cache for Visual Studio Generators:
- CMAKE_C_COMPILER
- CMAKE_CXX_COMPILER
- CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
I tried to find a good place to add the code, but I didn't find anything. If you can guide me, I can create a PR for that.
Thank You, go2sh