summaryrefslogtreecommitdiffstats
path: root/src/rbd_replay/CMakeLists.txt
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-06-03 19:06:29 +0200
committerKefu Chai <kchai@redhat.com>2019-06-03 19:26:11 +0200
commit61bd70535fd3e0fe575f0682d665e9b9c878ad24 (patch)
tree1271c1129ab6b6f27788092e22f7b9610ad41bd5 /src/rbd_replay/CMakeLists.txt
parentcmake: link libosd against libos (diff)
downloadceph-61bd70535fd3e0fe575f0682d665e9b9c878ad24.tar.xz
ceph-61bd70535fd3e0fe575f0682d665e9b9c878ad24.zip
cmake: link rbd_reply against rbd_replay_types
should make it `PUBLIC` because, for instance, src/rbd_replay/actions.hpp uses `rbd_replay::action::IoActionBase::dump()` and `rbd_replay::action::ActionBase::dump()` Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/rbd_replay/CMakeLists.txt')
-rw-r--r--src/rbd_replay/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rbd_replay/CMakeLists.txt b/src/rbd_replay/CMakeLists.txt
index e9d3804c5f5..63446626ac3 100644
--- a/src/rbd_replay/CMakeLists.txt
+++ b/src/rbd_replay/CMakeLists.txt
@@ -10,12 +10,14 @@ set(librbd_replay_srcs
rbd_loc.cc
Replayer.cc)
add_library(rbd_replay STATIC ${librbd_replay_srcs})
-target_link_libraries(rbd_replay PRIVATE librbd librados global)
+target_link_libraries(rbd_replay
+ PUBLIC rbd_replay_types
+ PRIVATE librbd librados global)
add_executable(rbd-replay
rbd-replay.cc)
target_link_libraries(rbd-replay
- librbd librados global rbd_replay rbd_replay_types ceph-common)
+ librbd librados global rbd_replay ceph-common)
install(TARGETS rbd-replay DESTINATION bin)
set(librbd_replay_ios_srcs
@@ -29,7 +31,6 @@ if(HAVE_BABELTRACE)
target_link_libraries(rbd-replay-prep
rbd_replay
rbd_replay_ios
- rbd_replay_types
librbd
librados
ceph-common