diff --git a/exporters/prometheus/CMakeLists.txt b/exporters/prometheus/CMakeLists.txt index bdafeb1588..13fb7c9de0 100644 --- a/exporters/prometheus/CMakeLists.txt +++ b/exporters/prometheus/CMakeLists.txt @@ -19,6 +19,9 @@ endif() add_library(opentelemetry_exporter_prometheus src/exporter.cc src/collector.cc src/exporter_utils.cc) + +set_target_properties(opentelemetry_exporter_prometheus + PROPERTIES EXPORT_NAME prometheus_exporter) target_include_directories( opentelemetry_exporter_prometheus PUBLIC "$"