Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,807
    • Issues 3,807
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #18893

Closed
Open
Created Feb 08, 2019 by Christoph Seitz@go2sh

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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking