File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
add_subdirectory (common )
5
5
include_directories (common )
6
- if (WITH_OTLP_GRPC OR WITH_OTLP_HTTP )
6
+ if (WITH_OTLP_GRPC
7
+ OR WITH_OTLP_HTTP
8
+ OR WITH_OTLP_FILE )
7
9
add_subdirectory (otlp )
8
10
endif ()
9
11
if (WITH_OTLP_GRPC )
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ if(WITH_OTLP_HTTP)
22
22
PRIVATE opentelemetry_exporter_otlp_http )
23
23
endif ()
24
24
25
+ if (WITH_OTLP_FILE )
26
+ add_compile_definitions (WITH_OTLP_FILE )
27
+ target_link_libraries (opentelemetry_cpp
28
+ PRIVATE opentelemetry_exporter_otlp_file )
29
+ endif ()
30
+
25
31
target_link_libraries (
26
32
opentelemetry_cpp PRIVATE opentelemetry_metrics
27
33
opentelemetry_exporter_ostream_metrics )
@@ -36,6 +42,11 @@ if(WITH_OTLP_HTTP)
36
42
PRIVATE opentelemetry_exporter_otlp_http_metric )
37
43
endif ()
38
44
45
+ if (WITH_OTLP_FILE )
46
+ target_link_libraries (opentelemetry_cpp
47
+ PRIVATE opentelemetry_exporter_otlp_file_metric )
48
+ endif ()
49
+
39
50
target_link_libraries (
40
51
opentelemetry_cpp PRIVATE opentelemetry_logs
41
52
opentelemetry_exporter_ostream_logs )
@@ -50,6 +61,11 @@ if(WITH_OTLP_HTTP)
50
61
PRIVATE opentelemetry_exporter_otlp_http_log )
51
62
endif ()
52
63
64
+ if (WITH_OTLP_FILE )
65
+ target_link_libraries (opentelemetry_cpp
66
+ PRIVATE opentelemetry_exporter_otlp_file_log )
67
+ endif ()
68
+
53
69
find_program (
54
70
_vswhere_tool
55
71
NAMES vswhere
You can’t perform that action at this time.
0 commit comments