2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2019-12-30 11:40:10 +03:00
|
|
|
## File: Set-BoostRoot.ps1
|
|
|
|
|
## Team: CI-Build
|
2019-12-13 09:48:00 -05:00
|
|
|
## Desc: Install boost using tool cache
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2020-03-17 09:47:22 +03:00
|
|
|
Import-Module -Name ImageHelpers
|
|
|
|
|
|
|
|
|
|
$SoftwareName = "Boost"
|
|
|
|
|
$BoostDirectory = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $SoftwareName
|
2020-06-10 19:42:15 +03:00
|
|
|
$BoostVersions = (Get-ToolsetContent | Select-Object -ExpandProperty toolcache | Where-Object { $_.Name -eq "Boost"}).Versions
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2019-12-30 11:40:10 +03:00
|
|
|
foreach($BoostVersion in $BoostVersions)
|
2019-12-13 09:48:00 -05:00
|
|
|
{
|
2020-06-10 19:42:15 +03:00
|
|
|
$BoostInstallationDir = Join-Path -Path $BoostDirectory -ChildPath "$BoostVersion\X86_64"
|
2019-12-13 09:48:00 -05:00
|
|
|
|
|
|
|
|
$EnvBoostPath = "BOOST_ROOT_{0}" -f ($BoostVersion.Replace('.', '_'))
|
|
|
|
|
setx $EnvBoostPath $BoostInstallationDir /M | Out-Null
|
|
|
|
|
}
|