@@ -46,9 +46,14 @@ if(WITH_NO_DEPRECATED_CODE)
46
46
INTERFACE OPENTELEMETRY_NO_DEPRECATED_CODE )
47
47
endif ()
48
48
49
- if (WITH_ABSEIL )
50
-
51
- find_package (absl CONFIG REQUIRED )
49
+ if (TELEMETRY_WITH_ABSEIL )
50
+ IF (WITH_PROTOBUF STREQUAL "bundled" )
51
+ INCLUDE_DIRECTORIES (BEFORE SYSTEM
52
+ "${BUNDLED_PROTO_SRCDIR} "
53
+ "${BUNDLED_ABSEIL_SRCDIR} " )
54
+ ELSE ()
55
+ find_package (absl CONFIG REQUIRED )
56
+ ENDIF ()
52
57
53
58
target_compile_definitions (opentelemetry_api INTERFACE HAVE_ABSEIL )
54
59
target_link_libraries (
@@ -58,10 +63,10 @@ if(WITH_ABSEIL)
58
63
endif ()
59
64
60
65
if (WITH_STL )
61
- message ("Building with standard library types..." )
66
+ message (STATUS "Building with standard library types..." )
62
67
target_compile_definitions (opentelemetry_api INTERFACE HAVE_CPP_STDLIB )
63
68
else ()
64
- message ("Building with nostd types..." )
69
+ message (STATUS "Building with nostd types..." )
65
70
endif ()
66
71
67
72
if (WITH_GSL )
@@ -98,6 +103,31 @@ if(WITH_ASYNC_EXPORT_PREVIEW)
98
103
target_compile_definitions (opentelemetry_api INTERFACE ENABLE_ASYNC_EXPORT )
99
104
endif ()
100
105
106
+ if (WITH_REMOVE_METER_PREVIEW )
107
+ target_compile_definitions (opentelemetry_api
108
+ INTERFACE ENABLE_REMOVE_METER_PREVIEW )
109
+ endif ()
110
+
111
+ # A better place should be in sdk, not api
112
+ if (WITH_OTLP_HTTP_SSL_PREVIEW )
113
+ target_compile_definitions (opentelemetry_api
114
+ INTERFACE ENABLE_OTLP_HTTP_SSL_PREVIEW )
115
+ target_compile_definitions (opentelemetry_api
116
+ INTERFACE ENABLE_HTTP_SSL_PREVIEW )
117
+
118
+ if (WITH_OTLP_HTTP_SSL_TLS_PREVIEW )
119
+ target_compile_definitions (opentelemetry_api
120
+ INTERFACE ENABLE_OTLP_HTTP_SSL_TLS_PREVIEW )
121
+ target_compile_definitions (opentelemetry_api
122
+ INTERFACE ENABLE_HTTP_SSL_TLS_PREVIEW )
123
+ endif ()
124
+ endif ()
125
+
126
+ if (WITH_OTLP_GRPC_SSL_MTLS_PREVIEW )
127
+ target_compile_definitions (opentelemetry_api
128
+ INTERFACE ENABLE_OTLP_GRPC_SSL_MTLS_PREVIEW )
129
+ endif ()
130
+
101
131
if (WITH_METRICS_EXEMPLAR_PREVIEW )
102
132
target_compile_definitions (opentelemetry_api
103
133
INTERFACE ENABLE_METRICS_EXEMPLAR_PREVIEW )
0 commit comments