diff --git a/system/jlib/CMakeLists.txt b/system/jlib/CMakeLists.txt index 0b5a9a0490f..711d8958b90 100644 --- a/system/jlib/CMakeLists.txt +++ b/system/jlib/CMakeLists.txt @@ -42,10 +42,10 @@ endif(NOT TARGET libbase58) find_package(yaml CONFIG REQUIRED) -#For OpenTel exporter find_package(Protobuf REQUIRED) -#For http exporter -#find_package(CURL REQUIRED) +find_package(CURL CONFIG REQUIRED) +find_package(gRPC CONFIG REQUIRED) +find_package(nlohmann_json CONFIG REQUIRED) find_package(opentelemetry-cpp CONFIG REQUIRED) SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${STRICT_CXX_FLAGS}") @@ -239,8 +239,6 @@ if ( ${HAVE_LIBCRYPT} ) target_link_libraries ( jlib crypt) endif ( ${HAVE_LIBCRYPT} ) -find_package(gRPC CONFIG REQUIRED) - target_link_libraries ( jlib opentelemetry-cpp::ostream_span_exporter