diff --git a/exporters/prometheus/CMakeLists.txt b/exporters/prometheus/CMakeLists.txt index c6387a66c8..0244f8ff9a 100644 --- a/exporters/prometheus/CMakeLists.txt +++ b/exporters/prometheus/CMakeLists.txt @@ -27,9 +27,12 @@ endif() if(TARGET core) list(APPEND PROMETHEUS_EXPORTER_TARGETS core) endif() +if(TARGET util) + list(APPEND PROMETHEUS_EXPORTER_TARGETS util) +endif() target_link_libraries( opentelemetry_exporter_prometheus - PUBLIC opentelemetry_metrics prometheus-cpp::pull prometheus-cpp::core) + PUBLIC opentelemetry_metrics prometheus-cpp::pull prometheus-cpp::core prometheus-cpp::util) if(OPENTELEMETRY_INSTALL) install(