VS: Fix validation of Windows 8.1 SDK

The check added by commit 0a29a31161 (VS2017: Verify Windows 8.1 SDK
before using it, 2017-04-25, v3.8.1~2^2) used the wrong path to
`windows.h` within the SDK, leading to it never being detected.

Fixes: #18923
This commit is contained in:
Brad King
2019-02-14 07:39:06 -05:00
parent 6f23321d40
commit 5c26e3c5e3

View File

@@ -453,7 +453,8 @@ bool cmGlobalVisualStudioVersionedGenerator::IsWin81SDKInstalled() const
"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\"
"Windows Kits\\Installed Roots;KitsRoot81",
win81Root, cmSystemTools::KeyWOW64_32)) {
return cmSystemTools::FileExists(win81Root + "/um/windows.h", true);
return cmSystemTools::FileExists(win81Root + "/include/um/windows.h",
true);
}
return false;
}