-
Notifications
You must be signed in to change notification settings - Fork 485
[CMAKE] Address the vcpkg opentelemetry-cpp port CMake patches #3518
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
[CMAKE] Address the vcpkg opentelemetry-cpp port CMake patches #3518
Conversation
…argets. Test the opentracing-static target built with conan in ci
…chainload toolchain file
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3518 +/- ##
==========================================
+ Coverage 89.95% 89.96% +0.02%
==========================================
Files 219 219
Lines 7051 7051
==========================================
+ Hits 6342 6343 +1
+ Misses 709 708 -1 🚀 New features to boost your workflow:
|
# Note: CMAKE_FIND_PACKAGE_PREFER_CONFIG requires cmake 3.15. Prefer cmake | ||
# CONFIG search mode to find dependencies. This is important to properly find | ||
# protobuf versions 3.22.0 and above due to the abseil-cpp dependency. | ||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE) |
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.
We can remove this now that GTest, Protobuf, and gRPC are found with the CONFIG search mode explicitly.
@@ -497,6 +488,14 @@ if((NOT WITH_API_ONLY) AND USE_NLOHMANN_JSON) | |||
include("${opentelemetry-cpp_SOURCE_DIR}/cmake/nlohmann-json.cmake") | |||
endif() | |||
|
|||
# | |||
# Do we need OpenTracing ? |
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.
The official vcpkg port still supports it as opentelemetry-cpp[opentracing]
, but I think we could deprecate it, or plan on that.
Fixes #3401
Fix CMake issues requiring patches to the vcpkg opentelemetry-cpp port.
Changes
CMAKE_FIND_PACKAGE_PREFER_CONFIG
VCPKG_CHAINLOAD_TOOLCHAIN_FILE
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes