commit | 76a08cd25332b74627802df8817068219b89161d | [log] [tgz] |
---|---|---|
author | Martin Duffy <martin.duffy@kitware.com> | Thu Apr 21 15:29:05 2022 -0400 |
committer | Brad King <brad.king@kitware.com> | Fri May 06 12:14:37 2022 -0400 |
tree | a349756534c11634ac1fc919793801c78fbec612 | |
parent | de802fc5a35780581948f7638f0f22c3974922dd [diff] |
COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errors Add `COMPILE_WARNING_AS_ERROR` target property and supporting `CMAKE_COMPILE_WARNING_AS_ERROR` variable. `COMPILE_WARNING_AS_ERROR` is initialized by `CMAKE_COMPILE_WARNING_AS_ERROR`. It is a boolean variable. If it is true, it expands to a different flag depending on the compiler such that any warnings at compile will be treated as errors. Supports compiler ids that I could find a relevant flag for.