Skip to content

Commit

Permalink
Merge branch 'main' into sync_gauge_2279
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb authored Oct 30, 2024
2 parents c9e40a5 + 6292a6a commit 55afe83
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion cmake/opentelemetry-cpp-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,39 @@ set(OPENTELEMETRY_VERSION

# ##############################################################################

find_package(Threads)
include(CMakeFindDependencyMacro)

find_dependency(Threads)

if(@WITH_ABSEIL@)
find_dependency(absl)
endif()

if(@WITH_OTLP_GRPC@)
find_dependency(gRPC)
endif()

if("@OpenTracing_FOUND@")
find_dependency(OpenTracing)
endif()

if("@prometheus-cpp_FOUND@")
find_dependency(prometheus-cpp)
endif()

if("@Protobuf_FOUND@" OR "@PROTOBUF_FOUND@")
find_dependency(Protobuf)
endif()

if (@WITH_HTTP_CLIENT_CURL@ AND NOT @BUILD_SHARED_LIBS@)
if("@CURL_FOUND@")
find_dependency(CURL)
endif()

if("@ZLIB_FOUND@")
find_dependency(ZLIB)
endif()
endif()

set_and_check(OPENTELEMETRY_CPP_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(OPENTELEMETRY_CPP_LIBRARY_DIRS "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
Expand Down

0 comments on commit 55afe83

Please sign in to comment.