finally fixed escaping

This commit is contained in:
Patrick von Reth 2015-07-20 15:30:52 +02:00
parent d3921715aa
commit e304072dda
2 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,7 @@ build_script:
cache:
- work\git -> appveyor.yml
- work\install -> appveyor.yml
environment:
matrix:

View File

@ -2,16 +2,16 @@
#http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt
function batCall([string] $path, [string] $arg)
{
Write-Host 'Calling "$path" "$arg"'
cmd /c '"$path" "$arg" & set' |
Write-Host "Calling `"$path`" `"$arg`""
cmd /c "`"$path`" `"$arg`" & set" |
foreach {
if ($_ -match "=") {
$v = $_.split("=")
#Write-Host "ENV:\$($v[0])=$($v[1])"
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
}
$CMAKE_INSTALL_ROOT="$env:APPVEYOR_BUILD_FOLDER/work/install" -replace "\\", "/"
if ( $env:COMPILER -eq "MINGW" )
@ -21,6 +21,8 @@ if ( $env:COMPILER -eq "MINGW" )
$env:PATH=$env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin", ""
$CMAKE_GENERATOR="MinGW Makefiles"
$MAKE = "mingw32-make"
exit 0
}
elseif ( $env:COMPILER -eq "MSVC" )
{