diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/options.cmake | 1 | ||||
-rw-r--r-- | cmake/showoptions.cmake | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 52b39e4532c..7dffa37bdb0 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -49,6 +49,7 @@ endif() option(WITH_WARNINGS "Show all warnings during compile" 0) option(WITH_COREDEBUG "Include additional debug-code in core" 0) option(WITH_STRICT_DATABASE_TYPE_CHECKS "Enable strict checking of database field value accessors" 0) +option(WITHOUT_METRICS "Disable metrics reporting (i.e. InfluxDB and Grafana)" 0) option(COPY_CONF "Copy authserver and worldserver .conf.dist files to the project dir" 1) set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for IDE's.") set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical hierarchical-folders) diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake index bb027903037..9d4678335f0 100644 --- a/cmake/showoptions.cmake +++ b/cmake/showoptions.cmake @@ -123,6 +123,13 @@ if(PERFORMANCE_PROFILING) add_definitions(-DPERFORMANCE_PROFILING) endif() +if(WITHOUT_METRICS) + message("") + message(" *** WITHOUT_METRICS - WARNING!") + message(" *** Please note that this will disable all metrics output (i.e. InfluxDB and Grafana)") + add_definitions(-DWITHOUT_METRICS) +endif() + if(WITH_STRICT_DATABASE_TYPE_CHECKS) message("") message(" *** WITH_STRICT_DATABASE_TYPE_CHECKS - WARNING!") |