[vcpkg] Fix getWindowsSDK to correctly handle the new optional c++ desktop deployment of the Windows SDK.

This commit is contained in:
Robert Schumacher 2017-04-13 18:59:13 -07:00
parent 2fa9be1977
commit bfb76e52a4

View File

@ -44,8 +44,16 @@ foreach ($ProgramFiles in $CandidateProgramFiles)
Write-Verbose "$windowsheader - Not Found"
continue
}
Write-Verbose "$windowsheader - Found"
$ddkheader = "$folder\$win10sdkV\shared\sdkddkver.h"
if (!(Test-Path $ddkheader))
{
Write-Verbose "$ddkheader - Not Found"
continue
}
Write-Verbose "$ddkheader - Found"
$win10sdkVersionString = $win10sdkV.ToString()
Write-Verbose "Found $win10sdkVersionString"
$validInstances.Add($win10sdkVersionString) > $null