Skip to content

Commit b92f316

Browse files
committed
Add find_dependency calls for remaining deps
Now we also resolve `OpenTracing`, and `prometheus-cpp`. If necessary, `CURL` and `ZLIB` are also resolved.
1 parent 34de484 commit b92f316

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

cmake/opentelemetry-cpp-config.cmake.in

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,28 @@ if(@WITH_OTLP_GRPC@)
8282
find_dependency(gRPC)
8383
endif()
8484

85+
if("@OpenTracing_FOUND@")
86+
find_dependency(OpenTracing)
87+
endif()
88+
89+
if("@prometheus-cpp_FOUND@")
90+
find_dependency(prometheus-cpp)
91+
endif()
92+
8593
if("@Protobuf_FOUND@" OR "@PROTOBUF_FOUND@")
8694
find_dependency(Protobuf)
8795
endif()
8896

97+
if (@WITH_HTTP_CLIENT_CURL@ AND NOT @BUILD_SHARED_LIBS@)
98+
if("@CURL_FOUND@")
99+
find_dependency(CURL)
100+
endif()
101+
102+
if("@ZLIB_FOUND@")
103+
find_dependency(ZLIB)
104+
endif()
105+
endif()
106+
89107
set_and_check(OPENTELEMETRY_CPP_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
90108
set_and_check(OPENTELEMETRY_CPP_LIBRARY_DIRS "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
91109

0 commit comments

Comments
 (0)