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 <kchai@redhat.com>
$<TARGET_OBJECTS:common_buffer_obj>)
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
${librbd_internal_srcs}
$<TARGET_OBJECTS:rados_snap_set_diff_obj>)
if(WITH_LTTNG)
- add_dependencies(rbd_internal rbd-tp)
+ add_dependencies(rbd_api rbd-tp)
endif()
add_library(librbd ${CEPH_SHARED}