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.