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 ddc553d commit 866351cCopy full SHA for 866351c
exporters/user_events/CMakeLists.txt
@@ -10,12 +10,12 @@ endif()
10
option(BUILD_EXAMPLE "Build example" ON)
11
option(BUILD_TESTING "Build tests" ON)
12
13
-set(MAIN_PROJECT OFF)
14
-
15
project(opentelemetry-user_events-exporter)
16
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
17
set(MAIN_PROJECT ON)
18
message(STATUS "${PROJECT_NAME} is main project")
+else()
+ set(MAIN_PROJECT OFF)
19
endif()
20
21
if(MAIN_PROJECT)
@@ -26,6 +26,9 @@ if(MAIN_PROJECT)
26
find_package(opentelemetry-cpp REQUIRED)
27
28
29
+# don't build samples and tools from LinuxTracepoints.
30
+set(BUILD_SAMPLES OFF)
31
+set(BUILD_TOOLS OFF)
32
add_subdirectory(third_party/LinuxTracepoints)
33
34
include_directories(include)
exporters/user_events/third_party/LinuxTracepoints
0 commit comments