]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: check libaio on linux before building SPDK
authorKefu Chai <kchai@redhat.com>
Sun, 19 Nov 2017 18:09:35 +0000 (02:09 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 20 Nov 2017 03:18:02 +0000 (11:18 +0800)
SPDK requires libaio on linux.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildSPDK.cmake

index 4209d4826d4338c1e8336d6a6eb056b7056501a4..c4aca7804cc6320356ad5bc4ab0e65bb4413648e 100644 (file)
@@ -4,6 +4,9 @@ macro(build_spdk)
     build_dpdk()
   endif()
   find_package(CUnit REQUIRED)
+  if(LINUX)
+    find_package(aio REQUIRED)
+  endif()
   include(ExternalProject)
   ExternalProject_Add(spdk-ext
     DEPENDS dpdk-ext