CMake: smalliobenchrbd should dep on rbd

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2015-08-03 12:52:58 +01:00
parent 1f541b2e8e
commit 57cd851df6

View File

@ -206,31 +206,33 @@ target_link_libraries(smalliobenchdumb librados boost_program_options os global
${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS})
# smalliobenchrbd
set(smalliobenchrbd_srcs
bench/small_io_bench_rbd.cc
bench/rbd_backend.cc
bench/detailed_stat_collector.cc
bench/bencher.cc
${CMAKE_SOURCE_DIR}/src/common/TextTable.cc
${CMAKE_SOURCE_DIR}/src/common/secret.c
)
add_executable(smalliobenchrbd
${smalliobenchrbd_srcs}
$<TARGET_OBJECTS:heap_profiler_objs>
)
target_link_libraries(smalliobenchrbd
librbd
librados
os
global
boost_program_options
blkid
udev
${BLKID_LIBRARIES}
${CMAKE_DL_LIBS}
${TCMALLOC_LIBS}
keyutils
if (${WITH_RBD})
set(smalliobenchrbd_srcs
bench/small_io_bench_rbd.cc
bench/rbd_backend.cc
bench/detailed_stat_collector.cc
bench/bencher.cc
${CMAKE_SOURCE_DIR}/src/common/TextTable.cc
${CMAKE_SOURCE_DIR}/src/common/secret.c
)
add_executable(smalliobenchrbd
${smalliobenchrbd_srcs}
$<TARGET_OBJECTS:heap_profiler_objs>
)
target_link_libraries(smalliobenchrbd
librbd
librados
os
global
boost_program_options
blkid
udev
${BLKID_LIBRARIES}
${CMAKE_DL_LIBS}
${TCMALLOC_LIBS}
keyutils
)
endif (${WITH_RBD})
# tpbench
set(tpbench_srcs