1 # Original: https://github.com/netdata/netdata/pull/17240
3 diff --git a/CMakeLists.txt b/CMakeLists.txt
4 index f37cbd18a..6db4c9f52 100644
7 @@ -134,6 +134,7 @@ mark_as_advanced(DEFAULT_FEATURE_STATE)
9 option(ENABLE_ACLK "Enable Netdata Cloud support (ACLK)" ${DEFAULT_FEATURE_STATE})
10 option(ENABLE_CLOUD "Enable Netdata Cloud by default at runtime" ${DEFAULT_FEATURE_STATE})
11 +option(ENABLE_DASHBOARD_V2 "enable dashboard v2" True)
12 option(ENABLE_ML "Enable machine learning features" ${DEFAULT_FEATURE_STATE})
13 option(ENABLE_DBENGINE "Enable dbengine metrics storage" True)
15 @@ -2946,7 +2947,9 @@ endif()
18 include(src/web/gui/v1/dashboard_v1.cmake)
19 -include(src/web/gui/v2/dashboard_v2.cmake)
20 +if(ENABLE_DASHBOARD_V2)
21 + include(src/web/gui/v2/dashboard_v2.cmake)
23 include(src/web/gui/gui.cmake)
25 function(cat IN_FILE OUT_FILE)