aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/options.cmake1
-rw-r--r--cmake/showoptions.cmake5
2 files changed, 6 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake
index 0097df809be..ef7636549a9 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -50,6 +50,7 @@ option(WITH_WARNINGS "Show all warnings during compile"
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(WITH_DETAILED_METRICS "Enable detailed metrics reporting (i.e. time each session takes to update)" 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 8cf5d85b913..5a80136312d 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -154,6 +154,11 @@ if(WITHOUT_METRICS)
message(" *** WITHOUT_METRICS - WARNING!")
message(" *** Please note that this will disable all metrics output (i.e. InfluxDB and Grafana)")
add_definitions(-DWITHOUT_METRICS)
+elseif (WITH_DETAILED_METRICS)
+ message("")
+ message(" *** WITH_DETAILED_METRICS - WARNING!")
+ message(" *** Please note that this will enable detailed metrics output (i.e. time each session takes to update)")
+ add_definitions(-DWITH_DETAILED_METRICS)
endif()
if(WITH_STRICT_DATABASE_TYPE_CHECKS)