CI: add helper file for Windows
This commit is contained in:
parent
dd1293ff0a
commit
ee3bab3437
1 changed files with 13 additions and 0 deletions
13
.gitlab/vcvarsall.ps1
Normal file
13
.gitlab/vcvarsall.ps1
Normal file
|
@ -0,0 +1,13 @@
|
|||
# copied from KitWare's VTK CI scripts
|
||||
|
||||
echo "Running VCVarsAll wrapper"
|
||||
|
||||
cmd /c "`"$env:VCVARSALL`" $env:VCVARSPLATFORM -vcvars_ver=$env:VCVARSVERSION & set" |
|
||||
foreach {
|
||||
if ($_ -match "=") {
|
||||
$v = $_.split("=")
|
||||
[Environment]::SetEnvironmentVariable($v[0], $v[1])
|
||||
}
|
||||
}
|
||||
|
||||
echo "Path is now: $env:Path"
|
Loading…
Reference in a new issue