Skip to content
GitLab
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 4,100
    • Issues 4,100
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and 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
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #16743
Closed
Open
Issue created Mar 28, 2017 by Ilia K@k15tfuContributor

VS: Use Windows SDK 10 from a custom folder

Hi!

On my computer I have the latest Windows 10 SDK v10.0.14393.0 which is installed to C:\Program Files (x86)\Windows Kits\10. I develop the project on few machines, so I created few bundles with dev toolset (msbuild & co) and with Windows SDK RTM version 10.0.10240.0.

The problem is that I cannot configure CMake to use Windows 10 SDK from the directory I unpacked it to. It always chooses the latest v10.0.14393.0 installed on my computer.

CMake gets SDK version by cmGlobalVisualStudio14Generator::GetWindows10SDKVersion which takes the SDK root directory from the register and then looks up the installed SDK with version ${CMAKE_SYSTEM_VERSION}, or returns the default (the most recent) version.

I have no trubles with compiler (I just specified the correct path to SDK) but I can't do it for CMake.

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