Skip to content

Commit 866351c

Browse files
authored
[user_events exporter] Disable building samples and tools from LinuxTracepoint (#305)
1 parent ddc553d commit 866351c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

exporters/user_events/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ endif()
1010
option(BUILD_EXAMPLE "Build example" ON)
1111
option(BUILD_TESTING "Build tests" ON)
1212

13-
set(MAIN_PROJECT OFF)
14-
1513
project(opentelemetry-user_events-exporter)
1614
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
1715
set(MAIN_PROJECT ON)
1816
message(STATUS "${PROJECT_NAME} is main project")
17+
else()
18+
set(MAIN_PROJECT OFF)
1919
endif()
2020

2121
if(MAIN_PROJECT)
@@ -26,6 +26,9 @@ if(MAIN_PROJECT)
2626
find_package(opentelemetry-cpp REQUIRED)
2727
endif()
2828

29+
# don't build samples and tools from LinuxTracepoints.
30+
set(BUILD_SAMPLES OFF)
31+
set(BUILD_TOOLS OFF)
2932
add_subdirectory(third_party/LinuxTracepoints)
3033

3134
include_directories(include)
Submodule LinuxTracepoints updated 109 files

0 commit comments

Comments
 (0)