add WARNINGS_AS_ERRORS cmake option (#176)

This commit is contained in:
Ben Morse
2018-05-10 17:46:11 -07:00
committed by GitHub
parent aa02012c14
commit 566076e3d8
3 changed files with 11 additions and 1 deletions

View File

@ -44,6 +44,7 @@ There are some CMake options you might care about:
| `ENABLE_IO_THREAD` | `ON` | When enabled, we start up a thread to do io processing, if disabled you should call `Discord_UpdateConnection` yourself.
| `USE_STATIC_CRT` | `OFF` | (Windows) Enable to statically link the CRT, avoiding requiring users install the redistributable package. (The prebuilt binaries enable this option)
| [`BUILD_SHARED_LIBS`](https://cmake.org/cmake/help/v3.7/variable/BUILD_SHARED_LIBS.html) | `OFF` | Build library as a DLL
| `WARNINGS_AS_ERRORS` | `OFF` | When enabled, compiles with `-Werror` (on *nix platforms). |
## Continuous Builds