aboutsummaryrefslogtreecommitdiff
path: root/cmake/options.cmake
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-09-20 13:19:42 +0200
committerOvahlord <dreadkiller@gmx.de>2024-09-21 05:50:20 +0200
commit70d2b3b34d516a4b7f98218a60da372900f53d1e (patch)
tree1843dc1faa2f48f97029a1b4dfeb0504ad85a1cd /cmake/options.cmake
parent92130c97be18fe36e84528766852e91fdd0ab8db (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.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake
index e650123d71f..05d8e9e0d68 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -47,6 +47,7 @@ else()
set(BUILD_SHARED_LIBS OFF)
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)