open-telemetry / opentelemetry-cpp

The OpenTelemetry C++ Client
https://opentelemetry.io/
Apache License 2.0
817 stars 392 forks source link

`prometheus-cpp::util` is not found in prometheus-cpp 1.1.0 and before. Which will make prometheus fail to build #2605

Closed owent closed 3 months ago

owent commented 3 months ago

Describe your environment

Windows

Steps to reproduce

Build otel-cpp with prometheus-cpp 1.1.0

What is the expected behavior? Success

What is the actual behavior?

[cmake] CMake Error at exporters/prometheus/CMakeLists.txt:33 (target_link_libraries):
[cmake]   Target "opentelemetry_exporter_prometheus" links to:
[cmake] 
[cmake]     prometheus-cpp::util
[cmake] 
[cmake]   but the target was not found.  Possible reasons include:
[cmake] 
[cmake]     * There is a typo in the target name.
[cmake]     * A find_package call is missing for an IMPORTED target.
[cmake]     * An ALIAS target is missing.
[cmake] 
[cmake] 
[cmake]