File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,10 @@ option(WITH_ASYNC_EXPORT_PREVIEW "Whether to enable async export" OFF)
287287option (WITH_METRICS_EXEMPLAR_PREVIEW
288288 "Whether to enable exemplar within metrics" OFF )
289289
290+ option (OPENTELEMETRY_STATIC_ONLY
291+ "Whether to build test libraries that are always linked as shared libs"
292+ OFF )
293+
290294#
291295# Verify options dependencies
292296#
Original file line number Diff line number Diff line change 11# Copyright The OpenTelemetry Authors
22# SPDX-License-Identifier: Apache-2.0
33
4+ if (OPENTELEMETRY_STATIC_ONLY)
5+ return ()
6+ endif ()
7+
48include (GoogleTest)
59
610# Header only singletons are not available in windows yet.
Original file line number Diff line number Diff line change 11# Copyright The OpenTelemetry Authors
22# SPDX-License-Identifier: Apache-2.0
33
4+ if (OPENTELEMETRY_STATIC_ONLY)
5+ return ()
6+ endif ()
7+
48add_library (example_plugin SHARED tracer.cc factory_impl.cc)
59target_link_libraries (example_plugin opentelemetry_api)
You can’t perform that action at this time.
0 commit comments