fix batCall

This commit is contained in:
Patrick von Reth 2015-07-20 12:06:58 +02:00
parent 9be97a51dc
commit 9a8e6f327a
2 changed files with 4 additions and 2 deletions

View File

@ -2,9 +2,11 @@
#http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt
function batCall([string] $path, [string] $arg)
{
cmd /c "$(path)&set" |
Write-Host "Calling $path $arg"
cmd /c "$path $arg & set" |
foreach {
if ($_ -match "=") {
#Write-Host "ENV:\$($v[0])=$($v[1])"
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}

View File

@ -1,4 +1,4 @@
Import-Module $env:APPVEYOR_BUILD_FOLDER\ci\ci.psm1
Import-Module $env:APPVEYOR_BUILD_FOLDER\ci\ci.psm1 -Force
batCall "C:\Qt\5.5\msvc2013_64\bin\qtenv2.bat"
batCall "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64