summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-11-19 19:04:59 +0100
committerKefu Chai <kchai@redhat.com>2017-11-20 04:18:02 +0100
commit57e792bcae285ae02e347740960dbff60b7b21a4 (patch)
tree75884d170adad94989249be40cf767528c5a549a /CMakeLists.txt
parentMerge pull request #18776 from JianyuLi/joa-mul-mds (diff)
downloadceph-57e792bcae285ae02e347740960dbff60b7b21a4.tar.xz
ceph-57e792bcae285ae02e347740960dbff60b7b21a4.zip
bluestore: enable building bluestore w/o libaio
KernelDevice is tightly coupled with libaio. more work is needed to decouple aio from it. but by guarding KernelDevice with HAVE_LIBAIO, we can enable bluestore on platforms w/o libaio. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cc2d027865..88705940f24 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -186,10 +186,10 @@ else()
endif(LINUX)
option(WITH_BLUESTORE "Bluestore OSD backend" ON)
-if(${WITH_BLUESTORE})
- find_package(aio REQUIRED)
+if(WITH_BLUESTORE)
+ find_package(aio)
set(HAVE_LIBAIO ${AIO_FOUND})
-endif(${WITH_BLUESTORE})
+endif()
option(WITH_OPENLDAP "OPENLDAP is here" ON)
if(WITH_OPENLDAP)