Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CPM for dependency management #2280

Closed
wants to merge 6 commits into from

Conversation

maztheman
Copy link

Changes

Basic clean up using modern CMake and CPM

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@maztheman maztheman requested a review from a team August 29, 2023 11:36
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 29, 2023

CLA Missing ID CLA Not Signed

CMakeLists.txt Outdated
@@ -1,7 +1,7 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.20)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this minimal version requirement to use CPM?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like 3.14 is required for CPM.

CMakeLists.txt Outdated
@@ -141,7 +144,7 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
endif()
else()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why C++14? C++11 is still the supported version. At least for now: #2147

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right. C++11 should work.

@@ -46,7 +46,7 @@ void BM_ParentBasedSamplerConstruction(benchmark::State &state)
{
while (state.KeepRunning())
{
benchmark::DoNotOptimize(ParentBasedSampler(std::make_shared<AlwaysOnSampler>()));
// benchmark::DoNotOptimize(ParentBasedSampler(std::make_shared<AlwaysOnSampler>()));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opentelemetry-cpp/build/_deps/benchmark-src/include/benchmark/benchmark.h:540:3: error: read-only reference ‘value’ used as ‘asm’ output
[build]   540 |   asm volatile("" : "+m"(value) : : "memory");
[build]       |   ^~~

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #2280 (d9b1819) into main (7196ec3) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2280      +/-   ##
==========================================
- Coverage   87.52%   87.50%   -0.01%     
==========================================
  Files         199      199              
  Lines        5981     5981              
==========================================
- Hits         5234     5233       -1     
- Misses        747      748       +1     
Files Changed Coverage Δ
...clude/opentelemetry/trace/propagation/detail/hex.h 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

@maztheman maztheman closed this Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants