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 33
44add_subdirectory (common)
55include_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)
79 add_subdirectory (otlp)
810endif ()
911if (WITH_OTLP_GRPC)
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ if(WITH_OTLP_HTTP)
2222 PRIVATE opentelemetry_exporter_otlp_http)
2323endif ()
2424
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+
2531target_link_libraries (
2632 opentelemetry_cpp PRIVATE opentelemetry_metrics
2733 opentelemetry_exporter_ostream_metrics)
@@ -36,6 +42,11 @@ if(WITH_OTLP_HTTP)
3642 PRIVATE opentelemetry_exporter_otlp_http_metric)
3743endif ()
3844
45+ if (WITH_OTLP_FILE)
46+ target_link_libraries (opentelemetry_cpp
47+ PRIVATE opentelemetry_exporter_otlp_file_metric)
48+ endif ()
49+
3950target_link_libraries (
4051 opentelemetry_cpp PRIVATE opentelemetry_logs
4152 opentelemetry_exporter_ostream_logs)
@@ -50,6 +61,11 @@ if(WITH_OTLP_HTTP)
5061 PRIVATE opentelemetry_exporter_otlp_http_log)
5162endif ()
5263
64+ if (WITH_OTLP_FILE)
65+ target_link_libraries (opentelemetry_cpp
66+ PRIVATE opentelemetry_exporter_otlp_file_log)
67+ endif ()
68+
5369find_program (
5470 _vswhere_tool
5571 NAMES vswhere
You can’t perform that action at this time.
0 commit comments