diff --git a/ports/opentelemetry-cpp/portfile.cmake b/ports/opentelemetry-cpp/portfile.cmake index fbce990dd0..a2d5f488e7 100644 --- a/ports/opentelemetry-cpp/portfile.cmake +++ b/ports/opentelemetry-cpp/portfile.cmake @@ -39,6 +39,7 @@ if(WITH_OTLP) # Create empty .git directory to prevent opentelemetry from cloning it during build time file(MAKE_DIRECTORY "${SOURCE_PATH}/third_party/opentelemetry-proto/.git") list(APPEND FEATURE_OPTIONS -DCMAKE_CXX_STANDARD=14) + list(APPEND FEATURE_OPTIONS -DgRPC_CPP_PLUGIN_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/grpc/grpc_cpp_plugin${VCPKG_HOST_EXECUTABLE_SUFFIX}) endif() vcpkg_cmake_configure( diff --git a/ports/opentelemetry-cpp/vcpkg.json b/ports/opentelemetry-cpp/vcpkg.json index 798d03e186..2af422e4a8 100644 --- a/ports/opentelemetry-cpp/vcpkg.json +++ b/ports/opentelemetry-cpp/vcpkg.json @@ -2,7 +2,7 @@ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "name": "opentelemetry-cpp", "version-semver": "1.8.3", - "port-version": 1, + "port-version": 2, "description": [ "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." @@ -39,6 +39,10 @@ "description": "Whether to include the OpenTelemetry Protocol in the SDK", "dependencies": [ "grpc", + { + "name": "grpc", + "host": true + }, "protobuf" ] }, diff --git a/versions/baseline.json b/versions/baseline.json index 393c220165..0d374e5a66 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5870,7 +5870,7 @@ }, "opentelemetry-cpp": { "baseline": "1.8.3", - "port-version": 1 + "port-version": 2 }, "opentracing": { "baseline": "1.6.0", diff --git a/versions/o-/opentelemetry-cpp.json b/versions/o-/opentelemetry-cpp.json index 14404a94c2..6248b06ba8 100644 --- a/versions/o-/opentelemetry-cpp.json +++ b/versions/o-/opentelemetry-cpp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "152ee0a0f79c1fc26d81291c9d1eb0417f9deeeb", + "version-semver": "1.8.3", + "port-version": 2 + }, { "git-tree": "3777014ad8e4997a8c0afbbc7f37ff949497059c", "version-semver": "1.8.3",