Background:
This issue is to track work addressing #3829 (comment)
The opentelemetry_add_pkgconfig CMake function creates and installs pkgconfig files per CMake target.
Currently this method is invoked for each target with the target name, a description, and dependencies. The corresponding pkgconfig files are only superficially verified in CI and are not used to compile any tests or examples. Regressions in pkgconfig support can be easily missed.
The otel_add_component function creates the install components for the opentelemetry-cpp CMake package. This method can be updated to accept a description and to create the pkgconfig files for each target in the component.
Scope:
- Add a description arg to
otel_add_component
- Add the pkgconfig file install functionality to
otel_add_component
- Add a CMake based pkgconfig test for the generated pkgconfig files against the install test files (
./install/test/src)
Background:
This issue is to track work addressing #3829 (comment)
The
opentelemetry_add_pkgconfigCMake function creates and installs pkgconfig files per CMake target.Currently this method is invoked for each target with the target name, a description, and dependencies. The corresponding pkgconfig files are only superficially verified in CI and are not used to compile any tests or examples. Regressions in pkgconfig support can be easily missed.
The
otel_add_componentfunction creates the install components for the opentelemetry-cpp CMake package. This method can be updated to accept a description and to create the pkgconfig files for each target in the component.Scope:
otel_add_componentotel_add_component./install/test/src)