mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -61,7 +61,13 @@ endif()
|
||||
if(WITH_WARNINGS)
|
||||
message("* Show all warnings : Yes")
|
||||
else()
|
||||
message("* Show compile-warnings : No (default)")
|
||||
message("* Show all warnings : No (default)")
|
||||
endif()
|
||||
|
||||
if(WITH_WARNINGS_AS_ERRORS)
|
||||
message("* Stop build on warning : Yes")
|
||||
else()
|
||||
message("* Stop build on warning : No (default)")
|
||||
endif()
|
||||
|
||||
if(WITH_COREDEBUG)
|
||||
|
||||
Reference in New Issue
Block a user