From 7ffa425e1db8b0c3edf9c50f2f3a0f25a324541d Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Tue, 10 Mar 2020 10:15:27 -0700 Subject: [boost-vcpkg-helpers] Pass boost port creation output folder as a parameter (#8168) * Allow option to pass desired ports directory to boost's generate ports script * Restore the changes and resolve the conflicts Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: PhoebeHui --- scripts/boost/generate-ports.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/boost/generate-ports.ps1 b/scripts/boost/generate-ports.ps1 index ec32e53fb..b1cf08377 100644 --- a/scripts/boost/generate-ports.ps1 +++ b/scripts/boost/generate-ports.ps1 @@ -1,11 +1,15 @@ [CmdletBinding()] param ( $libraries = @(), - $version = "1.72.0" + $version = "1.72.0", + $portsDir = $null ) $scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition -$portsDir = "$scriptsDir/../../ports" +if ($null -eq $portsDir) +{ + $portsDir = "$scriptsDir/../../ports" +} function TransformReference() { -- cgit v1.2.3