]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: use BuildDPDK if libdpdk not found
authorKefu Chai <kchai@redhat.com>
Fri, 17 Nov 2017 05:47:52 +0000 (13:47 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 18 Nov 2017 02:45:26 +0000 (10:45 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index 2de40f0d7c6d8273a102f3844be3b3a0346e470b..4cc2d027865ce7f786e7d19911e124c67317c6f4 100644 (file)
@@ -353,6 +353,13 @@ if(WITH_DPDK)
   endif()
   find_package(dpdk)
   set(HAVE_DPDK ${DPDK_FOUND})
+  if(NOT TARGET dpdk-ext)
+    find_package(dpdk)
+    if(NOT DPDK_FOUND)
+      include(BuildDPDK)
+      build_dpdk()
+    endif()
+  endif()
 endif()
 
 option(WITH_BLKIN "Use blkin to emit LTTng tracepoints for Zipkin" OFF)