]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: set HAVE_DPDK if it's available
authorKefu Chai <kchai@redhat.com>
Sat, 28 Jul 2018 02:02:17 +0000 (10:02 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 28 Jul 2018 08:53:10 +0000 (16:53 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index 74ed9a0ce952e31eaa7ce38e04deb00913a4feef..f80020cd787516159f8b71a91099a5c70491676e 100644 (file)
@@ -365,14 +365,11 @@ endif()
 option(WITH_DPDK "Enable DPDK messaging" OFF)
 if(WITH_DPDK)
   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()
+  if(NOT DPDK_FOUND AND NOT TARGET dpdk-ext)
+    include(BuildDPDK)
+    build_dpdk()
   endif()
+  set(HAVE_DPDK TRUE)
 endif()
 
 option(WITH_BLKIN "Use blkin to emit LTTng tracepoints for Zipkin" OFF)