Skip to content

Commit 9176445

Browse files
authored
Fix exporter/user_events not added to the external components list in opentelemetry-cpp build. (open-telemetry#574)
1 parent 7731a60 commit 9176445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporters/user_events/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ option(WITH_EXAMPLES "Build example" ON)
88
option(BUILD_TESTING "Build tests" ON)
99
option(BUILD_TRACEPOINTS "Build tracepoints library" ON)
1010

11-
project(opentelemetry-user_events-exporter)
11+
set(MAIN_PROJECT OFF)
12+
1213
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
1314
set(MAIN_PROJECT ON)
15+
project(opentelemetry-user_events-exporter)
1416
message(STATUS "${PROJECT_NAME} is main project")
15-
else()
16-
set(MAIN_PROJECT OFF)
1717
endif()
1818

1919
if(MAIN_PROJECT)

0 commit comments

Comments
 (0)