|
28 | 28 | [string] |
29 | 29 | $Version, |
30 | 30 |
|
31 | | - [ValidateSet('12.0', '14.0', '14.1', '14.2')] |
| 31 | + [ValidateSet('12.0', '14.0', '14.1', '14.2', '14.3')] |
32 | 32 | [string] |
33 | 33 | $VcToolsetVer, |
34 | 34 |
|
@@ -123,13 +123,26 @@ function Install-BoostComponent([string]$Component) |
123 | 123 | -InstallDir $workDir ` |
124 | 124 | -PackageVersion $Version |
125 | 125 |
|
126 | | - Move-Item ` |
127 | | - -Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-32', 'lib', '*')) ` |
128 | | - -Destination $lib32Dir |
129 | | - |
130 | | - Move-Item ` |
131 | | - -Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-64', 'lib', '*')) ` |
132 | | - -Destination $lib64Dir |
| 126 | + if ($Version -gt 1.66) |
| 127 | + { |
| 128 | + $sourceFolder = ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native')) |
| 129 | + $itemsToMove32 = Get-ChildItem -Path $sourceFolder | Where-Object { $_.Name -like "*x32*" } |
| 130 | + $itemsToMove64 = Get-ChildItem -Path $sourceFolder | Where-Object { $_.Name -like "*x64*" } |
| 131 | + |
| 132 | + $itemsToMove32 | ForEach-Object { Move-Item -Path $_.FullName -Destination $lib32Dir } |
| 133 | + $itemsToMove64 | ForEach-Object { Move-Item -Path $_.FullName -Destination $lib64Dir } |
| 134 | + |
| 135 | + } |
| 136 | + else |
| 137 | + { |
| 138 | + Move-Item ` |
| 139 | + -Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-64', 'lib', '*')) ` |
| 140 | + -Destination $lib64Dir |
| 141 | + |
| 142 | + Move-Item ` |
| 143 | + -Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-32', 'lib', '*')) ` |
| 144 | + -Destination $lib32Dir |
| 145 | + } |
133 | 146 | } |
134 | 147 | } |
135 | 148 |
|
|
0 commit comments