Commit f3f2c45ee6d8f46692ebcc71f2ee688868629830

Edward Thomson 2018-08-26T17:12:17

ci: escape xml output path on Windows CMake treats backslashes as escape characters; use forward slashes for the XML output path.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/ci/build.ps1 b/ci/build.ps1
index 7762deb..c74717d 100644
--- a/ci/build.ps1
+++ b/ci/build.ps1
@@ -18,7 +18,9 @@ Write-Host "####################################################################
 Write-Host "## Configuring build environment"
 Write-Host "##############################################################################"
 
-Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DCLAR_XML=${BuildDirectory} ${Env:CMAKE_OPTIONS}"
+$TestOutputDirectory = $BuildDirectory -replace "\\", "/"
+
+Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DCLAR_XML=${TestOutputDirectory} ${Env:CMAKE_OPTIONS}"
 if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) }
 
 Write-Host ""