summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorDeepika Upadhyay <dupadhya@redhat.com>2022-02-04 21:53:48 +0100
committerOmri Zeneva <ozeneva@redhat.com>2022-05-17 10:38:01 +0200
commitbbaafcd32c8c35143f397b459b76cb380cb5f036 (patch)
tree358633a48e8375d5cd7b3a493747f9da85f54cb2 /cmake
parentcmake: include opentelemetry include directories (diff)
downloadceph-bbaafcd32c8c35143f397b459b76cb380cb5f036.tar.xz
ceph-bbaafcd32c8c35143f397b459b76cb380cb5f036.zip
cmake: create jaeger_base target for consuming tracing libraries
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/BuildOpentelemetry.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/BuildOpentelemetry.cmake b/cmake/modules/BuildOpentelemetry.cmake
index 68987e222e6..c528273a098 100644
--- a/cmake/modules/BuildOpentelemetry.cmake
+++ b/cmake/modules/BuildOpentelemetry.cmake
@@ -6,14 +6,14 @@ function(target_create _target _lib)
endfunction()
function(build_opentelemetry)
- set(opentelemetry_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/opentelemetry-cpp")
+ set(opentelemetry_SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/opentelemetry-cpp")
set(opentelemetry_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/opentelemetry-cpp")
set(opentelemetry_cpp_targets opentelemetry_trace opentelemetry_exporter_jaeger_trace)
set(opentelemetry_CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DWITH_JAEGER=ON
-DBUILD_TESTING=OFF
-DWITH_EXAMPLES=OFF
- -DBoost_INCLUDE_DIR=${CMAKE_BINARY_DIR}/boost/include)
+ -DBoost_INCLUDE_DIR=${CMAKE_BINARY_DIR}/boost/include)
set(opentelemetry_libs
${opentelemetry_BINARY_DIR}/sdk/src/trace/libopentelemetry_trace.a