From 7b3dbd0ed525f74cde6ea158eed56f4ea69580cd Mon Sep 17 00:00:00 2001 From: Doug Barker Date: Tue, 30 Sep 2025 03:08:38 -0400 Subject: [PATCH] [BUILD] Only build and run the exemplar tests if the preview flag is set (#3675) --- sdk/test/metrics/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/test/metrics/CMakeLists.txt b/sdk/test/metrics/CMakeLists.txt index 1b69d31aac..eafb116661 100644 --- a/sdk/test/metrics/CMakeLists.txt +++ b/sdk/test/metrics/CMakeLists.txt @@ -80,4 +80,6 @@ if(WITH_BENCHMARK) metrics_common_test_utils opentelemetry_common opentelemetry_resources) endif() -add_subdirectory(exemplar) +if(WITH_METRICS_EXEMPLAR_PREVIEW) + add_subdirectory(exemplar) +endif()