mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-01-06 02:19:52 +00:00
[vcpkg] Fix getWindowsSDK to correctly handle the new optional c++ desktop deployment of the Windows SDK.
This commit is contained in:
parent
2fa9be1977
commit
bfb76e52a4
@ -44,8 +44,16 @@ foreach ($ProgramFiles in $CandidateProgramFiles)
|
|||||||
Write-Verbose "$windowsheader - Not Found"
|
Write-Verbose "$windowsheader - Not Found"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Verbose "$windowsheader - Found"
|
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()
|
$win10sdkVersionString = $win10sdkV.ToString()
|
||||||
Write-Verbose "Found $win10sdkVersionString"
|
Write-Verbose "Found $win10sdkVersionString"
|
||||||
$validInstances.Add($win10sdkVersionString) > $null
|
$validInstances.Add($win10sdkVersionString) > $null
|
||||||
|
Loading…
Reference in New Issue
Block a user