[BUILD] Fix default value of OPENTELEMETRY_INSTALL_default#2062
[BUILD] Fix default value of OPENTELEMETRY_INSTALL_default#2062lalitb merged 2 commits intoopen-telemetry:mainfrom
Conversation
marcalff
left a comment
There was a problem hiding this comment.
What about simplifying to:
option(OPENTELEMETRY_INSTALL "Whether to install opentelemetry targets" ON)
and let users override the value to avoid installation if they want to, based on their own logic when used in super projects.
In my opnion, it's easier for users to enable the installation when it's the top level, because most libraries will include it too by default. |
|
Existing approach in this PR looks good to me, this is also similar with what is followed by gRPC and nlohmanm-json when used through super projects. |
|
@owent - Can you resolve the CHANGELOG.md conflict, will enable to merge this PR. |
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
Done nad thanks. |
OPENTELEMETRY_INSTALL_default.* commit '7887d32da60f54984a597abccbb0c883f3a51649': (82 commits) [RELEASE] Release version 1.9.0 (open-telemetry#2091) Use sdk_start_ts for MetricData start_ts for instruments having cumulative aggregation temporality. (open-telemetry#2086) [SEMANTIC CONVENTIONS] Upgrade to version 1.20.0 (open-telemetry#2088) [EXPORTER] Add OTLP HTTP SSL support (open-telemetry#1793) Make Windows build environment parallel (open-telemetry#2080) make some hints (open-telemetry#2078) Make some targets parallel in CI pipeline (open-telemetry#2076) [Metrics SDK] Implement Forceflush for Periodic Metric Reader (open-telemetry#2064) Upgraded semantic conventions to 1.19.0 (open-telemetry#2017) Bump actions/stale from 7 to 8 (open-telemetry#2070) Include directory path added for Zipkin exporter example (open-telemetry#2069) Ignore more warning of generated protobuf files than not included in `-Wall` and `-Wextra` (open-telemetry#2067) Add `ForceFlush` for all `LogRecordExporter`s and `SpanExporter`s. (open-telemetry#2000) Remove unused 'alerting' section from prometheus.yml in examples (open-telemetry#2055) Clean warnings in ETW exporters (open-telemetry#2063) Fix default value of `OPENTELEMETRY_INSTALL_default`. (open-telemetry#2062) [EXPORTER] GRPC endpoint scheme should take precedence over OTEL_EXPORTER_OTLP_TRACES_INSECURE (open-telemetry#2060) Fix view names in Prometheus example (open-telemetry#2034) Fix some docs typo (open-telemetry#2057) Checking indices before dereference (open-telemetry#2040) ... # Conflicts: # exporters/ostream/CMakeLists.txt # sdk/src/metrics/state/metric_collector.cc # sdk/src/metrics/state/temporal_metric_storage.cc
Fixes #2061
Changes
The default value of
OPENTELEMETRY_INSTALL_defaultshould beONwhen otel-cpp in on top level.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes