We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7731a60 commit 9176445Copy full SHA for 9176445
exporters/user_events/CMakeLists.txt
@@ -8,12 +8,12 @@ option(WITH_EXAMPLES "Build example" ON)
8
option(BUILD_TESTING "Build tests" ON)
9
option(BUILD_TRACEPOINTS "Build tracepoints library" ON)
10
11
-project(opentelemetry-user_events-exporter)
+set(MAIN_PROJECT OFF)
12
+
13
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
14
set(MAIN_PROJECT ON)
15
+ project(opentelemetry-user_events-exporter)
16
message(STATUS "${PROJECT_NAME} is main project")
-else()
- set(MAIN_PROJECT OFF)
17
endif()
18
19
if(MAIN_PROJECT)
0 commit comments