Skip to content

Commit

Permalink
CMake cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Mar 21, 2024
1 parent 979c91c commit bc79b7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exporters/prometheus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bc79b7c

Please sign in to comment.