From 98d03d072b933131b602592939c99c3860c173c7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 20 Aug 2021 22:50:40 +0800 Subject: [PATCH] cmake: exclude "grafonnet-lib" target from "all" so we don't build this target when running "make", and hence avoid accessing the internet in a building envronment where the internest access is not allowed. Signed-off-by: Kefu Chai (cherry picked from commit 1835fd86ddfe7f00e9ec3124fa1425e53cd7a930) Conflicts: monitoring/grafana/dashboards/CMakeLists.txt - pacific does not have "LOG_DOWNLOAD ON", "LOG_MERGED_STDOUTERR ON", or "LOG_OUTPUT_ON_FAILURE ON", but that fact is orthogonal to the substance of this backport --- monitoring/grafana/dashboards/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monitoring/grafana/dashboards/CMakeLists.txt b/monitoring/grafana/dashboards/CMakeLists.txt index c97fee6f9af3..65037cbd843a 100644 --- a/monitoring/grafana/dashboards/CMakeLists.txt +++ b/monitoring/grafana/dashboards/CMakeLists.txt @@ -21,7 +21,8 @@ if(WITH_GRAFANA) URL_MD5 0798752ed40864fa8b3db40a3c970642 BUILD_COMMAND "" CONFIGURE_COMMAND "" - INSTALL_COMMAND "") + INSTALL_COMMAND "" + EXCLUDE_FROM_ALL ON) add_dependencies(tests ${name}) ExternalProject_Get_Property(${name} SOURCE_DIR) -- 2.47.3