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:
parent
32b683bf37
commit
f6fc1751e9
3 changed files with 29 additions and 11 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue