open-telemetry / opentelemetry-cpp

The OpenTelemetry C++ Client
https://opentelemetry.io/
Apache License 2.0
811 stars 391 forks source link

[BUILD] Cmake option WITH_OTLP_GRPC_SSL_MTLS_PREVIEW is hidden #2700

Closed marcalff closed 1 week ago

marcalff commented 2 weeks ago

The build supports compiling with WITH_OTLP_GRPC_SSL_MTLS_PREVIEW, per api/CMakeLists:

if(WITH_OTLP_GRPC_SSL_MTLS_PREVIEW)
  target_compile_definitions(opentelemetry_api
                             INTERFACE ENABLE_OTLP_GRPC_SSL_MTLS_PREVIEW)
endif()

The problem is that this option, WITH_OTLP_GRPC_SSL_MTLS_PREVIEW, is not defined in the top level CMakeLists.txt.

When using ccmake, the UI does not expose this choice.