From: John Spray Date: Mon, 3 Aug 2015 11:59:00 +0000 (+0100) Subject: CMake: libblkid not only needed with rbd X-Git-Tag: v9.1.0~453^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=22e8a2915d3f871cf47a743104415978e84e31d5;p=ceph.git CMake: libblkid not only needed with rbd It's linked in libcommon. Signed-off-by: John Spray --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a54aa64982..c28362d55bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,9 @@ set(HAVE_LIBFUSE ${FUSE_FOUND}) CHECK_FUNCTION_EXISTS(fuse_getgroups HAVE_FUSE_GETGROUPS) endif(${WITH_FUSE}) +find_package(blkid REQUIRED) +set(HAVE_LIBBLKID ${BLKID_FOUND}) + # probably fuse etc need this -- how to check? XXX option(WITH_MDS "MDS is here" ON) @@ -129,10 +132,6 @@ option(WITH_KVS "Key value store is here" ON) # remote block storage option(WITH_RBD "Remote block storage is here" ON) -if(${WITH_RBD}) -find_package(blkid REQUIRED) -set(HAVE_LIBBLKID ${BLKID_FOUND}) -endif(${WITH_RBD}) option(WITH_LEVELDB "LevelDB is here" ON) if(${WITH_LEVELDB})