Skip to content

Conversation

spoax
Copy link
Contributor

@spoax spoax commented Sep 24, 2025

This pull request updates the logic in exporters/user_events/CMakeLists.txt to ensure that the project(opentelemetry-user_events-exporter) declaration only occurs when the CMake file is the main project. This change helps prevent issues when including this exporter as a subproject in opentelemetry-cpp build.

The project() command changes the PROJECT_SOURCE_DIR variable, which is used for the scope of the external components list variable in opentelemetry-cpp. This causes the user_events to be registered in the wrong list, and installation fails to install lib and include files.

Build system improvements:

  • Moved the project(opentelemetry-user_events-exporter) declaration inside the main project check to avoid redefining the project when included as a subproject.

@spoax spoax requested a review from a team as a code owner September 24, 2025 13:31
Copy link

linux-foundation-easycla bot commented Sep 24, 2025

CLA Signed

  • ✅login: spoax / name: Serkan Kenar / (1ee4f43)

The committers listed above are authorized under a signed CLA.

@spoax spoax force-pushed the fix-user_events-otel_add_component branch from 9a27944 to 1ee4f43 Compare September 24, 2025 13:43
@ThomsonTan ThomsonTan merged commit 9176445 into open-telemetry:main Sep 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants