From: Kefu Chai Date: Mon, 29 Aug 2016 07:05:55 +0000 (+0800) Subject: cmake: fix the tracing header dependencies X-Git-Tag: v11.0.1~369^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5e03ff098166dd2ea4003560df9911507579a9b9;p=ceph-ci.git cmake: fix the tracing header dependencies in aa679df, we move librados.cc into a separated obj target. this broken the dependency from librados.o to its tracing header. we need to update it accordingly. this change fixes the following compilation error: ``` /var/ceph/ceph/src/librados/librados.cc:47:30: fatal error: tracing/librados.h: No such file or directory #include "tracing/librados.h" ^ compilation terminated. ``` Signed-off-by: Kefu Chai --- diff --git a/src/librados/CMakeLists.txt b/src/librados/CMakeLists.txt index d7d01a699be..24d1398297f 100644 --- a/src/librados/CMakeLists.txt +++ b/src/librados/CMakeLists.txt @@ -10,7 +10,7 @@ add_library(librados ${CEPH_SHARED} $) add_dependencies(librados osdc) if(WITH_LTTNG) - add_dependencies(librados rados-tp) + add_dependencies(librados_api_obj rados-tp) endif() # LINK_PRIVATE instead of PRIVATE is used to backward compatibility with cmake 2.8.11 target_link_libraries(librados LINK_PRIVATE osdc common cls_lock_client diff --git a/src/librbd/CMakeLists.txt b/src/librbd/CMakeLists.txt index 1eaa652c974..a7f12a8d35d 100644 --- a/src/librbd/CMakeLists.txt +++ b/src/librbd/CMakeLists.txt @@ -73,7 +73,7 @@ add_library(rbd_internal STATIC ${librbd_internal_srcs} $) if(WITH_LTTNG) - add_dependencies(rbd_internal rbd-tp) + add_dependencies(rbd_api rbd-tp) endif() add_library(librbd ${CEPH_SHARED}