]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake: smalliobenchrbd should dep on rbd
authorJohn Spray <john.spray@redhat.com>
Mon, 3 Aug 2015 11:52:58 +0000 (12:52 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 3 Aug 2015 15:39:35 +0000 (16:39 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/test/CMakeLists.txt

index bc796d608a35df900be91c549231f103bdc88dc1..3e6fe305fe0a3fcc02715c03bd5c65c67210fcdf 100644 (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