diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-09-20 13:19:42 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-08-30 22:55:25 +0200 |
commit | a3874ee4f931336fa1ae240fe3288bc648b5d5c2 (patch) | |
tree | 091acf32311b27efd0e60d71eca7fe33e665a85d /cmake/options.cmake | |
parent | 58f9def30fe4f0f017538acc29e53fedd016893c (diff) |
Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors
(cherry picked from commit 7ac0c685dd01bdce2d1ee0bb878e5044b3c1fffa)
Diffstat (limited to 'cmake/options.cmake')
-rw-r--r-- | cmake/options.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 0125cff5f85..e939528584f 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -51,6 +51,7 @@ if(WITH_FILESYSTEM_WATCHER OR BUILD_SHARED_LIBS) set(BUILD_EFSW ON) endif() option(WITH_WARNINGS "Show all warnings during compile" 0) +option(WITH_WARNINGS_AS_ERRORS "Treat warnings as errors" 0) option(WITH_COREDEBUG "Include additional debug-code in core" 0) option(WITHOUT_METRICS "Disable metrics reporting (i.e. InfluxDB and Grafana)" 0) option(WITH_DETAILED_METRICS "Enable detailed metrics reporting (i.e. time each session takes to update)" 0) |