aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mysql-connector-cpp/disable-telemetry.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/mysql-connector-cpp/disable-telemetry.diff')
-rw-r--r--vcpkg/ports/mysql-connector-cpp/disable-telemetry.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/mysql-connector-cpp/disable-telemetry.diff b/vcpkg/ports/mysql-connector-cpp/disable-telemetry.diff
new file mode 100644
index 0000000..4ba74a1
--- /dev/null
+++ b/vcpkg/ports/mysql-connector-cpp/disable-telemetry.diff
@@ -0,0 +1,14 @@
+diff --git a/jdbc/extra/otel/CMakeLists.txt b/jdbc/extra/otel/CMakeLists.txt
+index bbed9bd..d03e2ef 100644
+--- a/jdbc/extra/otel/CMakeLists.txt
++++ b/jdbc/extra/otel/CMakeLists.txt
+@@ -9,7 +9,9 @@ if(NOT (WIN32 OR APPLE OR CMAKE_SYSTEM_NAME MATCHES "SunOS"))
+ message(STATUS "Adding OTel support")
+
+ set(TELEMETRY ON CACHE INTERNAL "Whether connector is built with OTel support")
++endif()
+
++if(TELEMETRY)
+ target_include_directories(otel_api INTERFACE
+ "${PROJECT_SOURCE_DIR}/extra/otel/${OPENTELEMETRY_CPP_TAG}/api/include"
+ )