We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prometheus-cpp::util
1 parent 9500c12 commit 02e6ad2Copy full SHA for 02e6ad2
exporters/prometheus/CMakeLists.txt
@@ -30,10 +30,12 @@ endif()
30
if(TARGET util)
31
list(APPEND PROMETHEUS_EXPORTER_TARGETS util)
32
endif()
33
-target_link_libraries(
34
- opentelemetry_exporter_prometheus
35
- PUBLIC opentelemetry_metrics prometheus-cpp::pull prometheus-cpp::core
36
- prometheus-cpp::util)
+set(PROMETHEUS_CPP_TARGETS prometheus-cpp::pull prometheus-cpp::core)
+if(TARGET prometheus-cpp::util)
+ list(APPEND PROMETHEUS_CPP_TARGETS prometheus-cpp::util)
+endif()
37
+target_link_libraries(opentelemetry_exporter_prometheus
38
+ PUBLIC opentelemetry_metrics ${PROMETHEUS_CPP_TARGETS})
39
40
if(OPENTELEMETRY_INSTALL)
41
install(
0 commit comments