[opentelemetry-cpp] Don't prefer CMake config (#41742)

This commit is contained in:
Kai Pastor 2024-10-25 07:23:57 +02:00 committed by GitHub
parent d2c7f39c90
commit 4f3b5daf33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,20 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd41fa7..cde4566 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,6 @@ project(opentelemetry-cpp)
mark_as_advanced(CMAKE_TOOLCHAIN_FILE)
# Prefer cmake CONFIG to auto resolve dependencies.
-set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
# Don't use customized cmake modules if vcpkg is used to resolve dependence.
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
@@ -96,7 +95,6 @@ if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
endif()
if(VCPKG_CHAINLOAD_TOOLCHAIN_FILE)
- include("${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}")
endif()
option(WITH_ABI_VERSION_1 "ABI version 1" ON)

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
SHA512 c89c4f7a73c11c020f8ea1cb836ccd222456f899ede8e81a1fd0024e0a88f17c44a66bada8ed3010b0d03ac052475edb34b855aeafcff50975d24c8859463d68 SHA512 c89c4f7a73c11c020f8ea1cb836ccd222456f899ede8e81a1fd0024e0a88f17c44a66bada8ed3010b0d03ac052475edb34b855aeafcff50975d24c8859463d68
HEAD_REF main HEAD_REF main
PATCHES PATCHES
cmake-quirks.diff
# Missing find_dependency for Abseil # Missing find_dependency for Abseil
add-missing-find-dependency.patch add-missing-find-dependency.patch
) )

View File

@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "opentelemetry-cpp", "name": "opentelemetry-cpp",
"version-semver": "1.17.0", "version-semver": "1.17.0",
"port-version": 1,
"description": [ "description": [
"OpenTelemetry is a collection of tools, APIs, and SDKs.", "OpenTelemetry is a collection of tools, APIs, and SDKs.",
"You use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) for analysis in order to understand your software's performance and behavior." "You use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) for analysis in order to understand your software's performance and behavior."

View File

@ -6722,7 +6722,7 @@
}, },
"opentelemetry-cpp": { "opentelemetry-cpp": {
"baseline": "1.17.0", "baseline": "1.17.0",
"port-version": 0 "port-version": 1
}, },
"opentelemetry-cpp-contrib-version": { "opentelemetry-cpp-contrib-version": {
"baseline": "2024-06-17", "baseline": "2024-06-17",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "676c68ab244c1b790041e5ae63dd72f794deb5d9",
"version-semver": "1.17.0",
"port-version": 1
},
{ {
"git-tree": "f1c52bb415c2c2e19b33e37dc85a2747720ae033", "git-tree": "f1c52bb415c2c2e19b33e37dc85a2747720ae033",
"version-semver": "1.17.0", "version-semver": "1.17.0",