Commit 6b2240542a70f6adb4fbdc7afcbe827dbedbe28b

Edward Thomson 2019-06-25T14:41:36

ci: build with ENABLE_WERROR on Windows Build with -Werror's equivalent (/WX) on MSVC

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ci/build.ps1 b/ci/build.ps1
index 159c1dd..20a265d 100644
--- a/ci/build.ps1
+++ b/ci/build.ps1
@@ -18,7 +18,7 @@ Write-Host "####################################################################
 Write-Host "## Configuring build environment"
 Write-Host "##############################################################################"
 
-Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON ${Env:CMAKE_OPTIONS}"
+Invoke-Expression "cmake ${SourceDirectory} -DBUILD_EXAMPLES=ON -DENABLE_WERROR=ON ${Env:CMAKE_OPTIONS}"
 if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) }
 
 Write-Host ""