From: Kefu Chai Date: Fri, 24 Aug 2018 14:33:01 +0000 (+0800) Subject: cmake: add option WITH_LIBRADOSSTRIPER X-Git-Tag: v13.2.2~41^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23869%2Fhead;p=ceph.git cmake: add option WITH_LIBRADOSSTRIPER 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 (cherry picked from commit e17900d552aef1ac96e5d1d60ec3ff179ceb38e9) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8fca928a5bd2..10adf50444ca 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -723,7 +723,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) set(mgr_srcs