]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add option WITH_LIBRADOSSTRIPER
authorKefu Chai <kchai@redhat.com>
Fri, 24 Aug 2018 14:33:01 +0000 (22:33 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 24 Aug 2018 14:33:08 +0000 (22:33 +0800)
otherwise this cmake variable is never defined, hence all tests
requiring libstriper are broken.

this is a regresssion introduced by 5513a90c62 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index d84cc581b5c732fa3034c61a1a00088dae7bb77a..327fce94a726ba15f6dfafdb7d3c05678e30ad75 100644 (file)
@@ -439,7 +439,11 @@ add_library(rados_snap_set_diff_obj OBJECT librados/snap_set_diff.cc)
 
 add_subdirectory(include)
 add_subdirectory(librados)
-add_subdirectory(libradosstriper)
+
+option(WITH_LIBRADOSSTRIPER "build with libradosstriper support" ON)
+if(WITH_LIBRADOSSTRIPER)
+  add_subdirectory(libradosstriper)
+endif()
 
 if(WITH_MGR)
   add_subdirectory(mgr)