This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit 814bfed3e24cd217330c03cf67fc18c54a0a5249
Author: Andrew Stitcher <astitc...@apache.org>
AuthorDate: Tue Apr 29 13:05:08 2025 -0400

    NO-JIRA: Stop spewing errors when cmake fails to find opentelemetry
---
 c/examples/CMakeLists.txt   | 2 +-
 cpp/CMakeLists.txt          | 2 +-
 cpp/examples/CMakeLists.txt | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/c/examples/CMakeLists.txt b/c/examples/CMakeLists.txt
index c0a984c09..7488a34d0 100644
--- a/c/examples/CMakeLists.txt
+++ b/c/examples/CMakeLists.txt
@@ -20,7 +20,7 @@ cmake_minimum_required (VERSION 3.16)
 
 project(ProtonCExamples C)
 
-find_package(Proton REQUIRED Core Proactor)
+find_package(Proton CONFIG REQUIRED Core Proactor)
 set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
 find_package(Threads REQUIRED)
 
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index c65cc8723..177573776 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -49,7 +49,7 @@ else()
 endif()
 
 # Check for OPENTELEMETRY-CPP for distributed tracing
-find_package(opentelemetry-cpp)
+find_package(opentelemetry-cpp CONFIG)
 option(ENABLE_OPENTELEMETRYCPP "Use opentelemetry for distributed tracing" 
${OPENTELEMETRY-CPP_FOUND})
 if (ENABLE_OPENTELEMETRYCPP)
   # This is a workaround because the otlp exporter requires protobuf but most 
packaged versions
diff --git a/cpp/examples/CMakeLists.txt b/cpp/examples/CMakeLists.txt
index 587edfc52..8e59f0adb 100644
--- a/cpp/examples/CMakeLists.txt
+++ b/cpp/examples/CMakeLists.txt
@@ -20,7 +20,7 @@ cmake_minimum_required (VERSION 3.16)
 
 project(ProtonCppExamples C CXX)
 
-find_package(ProtonCpp REQUIRED)
+find_package(ProtonCpp CONFIG REQUIRED)
 
 set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_EXTENSIONS OFF)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to