Skip to content

Commit 6b22405

Browse files
committed
ci: build with ENABLE_WERROR on Windows
Build with -Werror's equivalent (/WX) on MSVC
1 parent c544850 commit 6b22405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/build.ps1

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

21-
Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON ${Env:CMAKE_OPTIONS}"
21+
Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DENABLE_WERROR=ON ${Env:CMAKE_OPTIONS}"
2222
if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) }
2323

2424
Write-Host ""

0 commit comments

Comments
 (0)