mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-24 11:49:41 +00:00
[bootstrap.ps1] Add option to specify VS path
This commit is contained in:
parent
eabacf0d14
commit
615f7e112f
@ -1,7 +1,7 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]$disableMetrics = "0"
|
||||
[ValidateNotNullOrEmpty()][string]$disableMetrics = "0",
|
||||
[Parameter(Mandatory=$False)][string]$explicitlyRequestedVSPath = ""
|
||||
)
|
||||
|
||||
$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
@ -39,7 +39,7 @@ if (!(Test-Path $vcpkgSourcesPath))
|
||||
try
|
||||
{
|
||||
pushd $vcpkgSourcesPath
|
||||
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1
|
||||
$msbuildExeWithPlatformToolset = & $scriptsDir\findAnyMSBuildWithCppPlatformToolset.ps1 $explicitlyRequestedVSPath
|
||||
$msbuildExe = $msbuildExeWithPlatformToolset[0]
|
||||
$platformToolset = $msbuildExeWithPlatformToolset[1]
|
||||
$windowsSDK = & $scriptsDir\getWindowsSDK.ps1
|
||||
|
Loading…
Reference in New Issue
Block a user