Skip to content

Commit f3f2c45

Browse files
committed
ci: escape xml output path on Windows
CMake treats backslashes as escape characters; use forward slashes for the XML output path.
1 parent bfcbde5 commit f3f2c45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ Write-Host "####################################################################
1818
Write-Host "## Configuring build environment"
1919
Write-Host "##############################################################################"
2020

21-
Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DCLAR_XML=${BuildDirectory} ${Env:CMAKE_OPTIONS}"
21+
$TestOutputDirectory = $BuildDirectory -replace "\\", "/"
22+
23+
Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DCLAR_XML=${TestOutputDirectory} ${Env:CMAKE_OPTIONS}"
2224
if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) }
2325

2426
Write-Host ""

0 commit comments

Comments
 (0)