From 7ac0c685dd01bdce2d1ee0bb878e5044b3c1fffa Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 20 Sep 2024 13:19:42 +0200 Subject: Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors --- cmake/options.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/options.cmake') 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) -- cgit v1.2.3