CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION detects nothing in VS2015 on Win7 64
The Windows SDK detection logic won't find the installed Windows SDK.
The current logic is probably described here according to Google.
https://gitlab.kitware.com/cmake/cmake/commit/3f077996f58ca905125fc2387614b24c68c6f09e
The registry entries seem to be different than what the code is looking for. There is an extra key section at
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\10.0.16299.0]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\10.0.16299.0\Installed Options]
"OptionId.WindowsSoftwareLogoToolkit"=dword:00000001
"OptionId.UWPManaged"=dword:00000001
"OptionId.AvrfExternal"=dword:00000001
"OptionId.UWPCPP"=dword:00000001
but nothing at
[HKEY_CURRENT_USER\Software\Microsoft\Windows Kits]
[HKEY_CURRENT_USER\Software\Microsoft\Windows Kits\CEIP]
"OptIn"=dword:00000001
I just did a fresh install of VS2015 on Win7 64bit with this version
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
The installed sdks in
C:\Program Files (x86)\Windows Kits\10\Include
are
10.0.10150.0
10.0.10240.0
10.0.14393.0
10.0.16299.0