aboutsummaryrefslogtreecommitdiff
path: root/scripts/bootstrap.ps1
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-08 19:34:19 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-08 22:29:29 -0800
commitb6b69025c3c5d64f73faa3445fa3f17c967a8337 (patch)
tree87521f1c062e3f14ce81c04f87bdd59f815533c1 /scripts/bootstrap.ps1
parent9e6920849c491266efdab94dc49527655e0c303c (diff)
downloadvcpkg-b6b69025c3c5d64f73faa3445fa3f17c967a8337.tar.gz
vcpkg-b6b69025c3c5d64f73faa3445fa3f17c967a8337.zip
bootstrap.ps1 now detects the available Windows SDKs
Diffstat (limited to 'scripts/bootstrap.ps1')
-rw-r--r--scripts/bootstrap.ps13
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1
index 98ccb40ad..9907e31fb 100644
--- a/scripts/bootstrap.ps1
+++ b/scripts/bootstrap.ps1
@@ -26,7 +26,8 @@ try{
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1
$msbuildExe = $msbuildExeWithPlatformToolset[0]
$platformToolset = $msbuildExeWithPlatformToolset[1]
- & $msbuildExe "/p:VCPKG_VERSION=-$gitHash" "/p:DISABLE_METRICS=$disableMetrics" /p:Configuration=Release /p:Platform=x86 /p:PlatformToolset=$platformToolset /m dirs.proj
+ $targetPlatformVersion = & $scriptsDir\findTargetPlatformVersion.ps1
+ & $msbuildExe "/p:VCPKG_VERSION=-$gitHash" "/p:DISABLE_METRICS=$disableMetrics" /p:Configuration=Release /p:Platform=x86 /p:PlatformToolset=$platformToolset /p:TargetPlatformVersion=$targetPlatformVersion /m dirs.proj
Write-Verbose("Placing vcpkg.exe in the correct location")