summaryrefslogtreecommitdiffstats
path: root/src/test/CMakeLists.txt
diff options
context:
space:
mode:
authorJesse Williamson <jwilliamson@suse.de>2018-05-11 01:20:42 +0200
committerJesse Williamson <jwilliamson@suse.de>2018-08-15 01:47:32 +0200
commit5513a90c62f506d251dfebb2c3a871480c36337a (patch)
tree7727dc079e0190d40bda9cd443df92071c0c0b0b /src/test/CMakeLists.txt
parentMerge pull request #23532 from alfredodeza/wip-rm24960 (diff)
downloadceph-5513a90c62f506d251dfebb2c3a871480c36337a.tar.xz
ceph-5513a90c62f506d251dfebb2c3a871480c36337a.zip
build: add top-level libraddosstriper conditional
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
Diffstat (limited to 'src/test/CMakeLists.txt')
-rw-r--r--src/test/CMakeLists.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index 28c5dc213cc..01d671d8203 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -33,7 +33,9 @@ add_subdirectory(journal)
add_subdirectory(libcephfs)
add_subdirectory(librados)
add_subdirectory(librados_test_stub)
-add_subdirectory(libradosstriper)
+if(WITH_LIBRADOSSTRIPER)
+ add_subdirectory(libradosstriper)
+endif()
if(WITH_RBD)
add_subdirectory(librbd)
endif(WITH_RBD)
@@ -642,12 +644,14 @@ add_ceph_unittest(unittest_workqueue)
target_link_libraries(unittest_workqueue global)
# unittest_striper
-add_executable(unittest_striper
- test_striper.cc
- $<TARGET_OBJECTS:unit-main>
- )
+if(WITH_LIBRADOSSTRIPER)
+ add_executable(unittest_striper
+ test_striper.cc
+ $<TARGET_OBJECTS:unit-main>
+ )
add_ceph_unittest(unittest_striper)
target_link_libraries(unittest_striper global ${BLKID_LIBRARIES})
+endif(WITH_LIBRADOSSTRIPER)
# unittest_prebufferedstreambuf
add_executable(unittest_prebufferedstreambuf