Treat warnings as errors in CI builds

The CMake files now add "-Werror"/"/WX" if the "WERROR" CMake variable
is true.  By default it is not; the CI builds set this.

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-06-05 12:13:10 +02:00 committed by eboasson
parent 32b683bf37
commit f6fc1751e9
3 changed files with 29 additions and 11 deletions

View file

@ -164,6 +164,7 @@ script:
-DCMAKE_INSTALL_PREFIX=$(pwd)/install
-DUSE_SANITIZER=${ASAN}
-DBUILD_TESTING=on
-DWERROR=on
-G "${GENERATOR}" ../src
- ${SCAN_BUILD} cmake --build . --config ${BUILD_TYPE} --target install
- CYCLONEDDS_URI='<CycloneDDS><DDSI2E><Internal><EnableExpensiveChecks>all</EnableExpensiveChecks></Internal></DDSI2E></CycloneDDS>' ctest -T test -C ${BUILD_TYPE}