1
0
Fork 0

CI: add helper file for Windows

This commit is contained in:
James Turner 2023-10-02 10:34:01 +01:00
parent dd1293ff0a
commit ee3bab3437

13
.gitlab/vcvarsall.ps1 Normal file
View 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"