-
Notifications
You must be signed in to change notification settings - Fork 410
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
Conversation
|
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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>())); |
There was a problem hiding this comment.
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 Report
Additional details and impacted files@@ 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
|
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