From: Kefu Chai Date: Fri, 17 Nov 2017 05:47:52 +0000 (+0800) Subject: cmake: use BuildDPDK if libdpdk not found X-Git-Tag: v13.0.1~180^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a69bd61b8cd426d453b73e49f667441fe6b0b17b;p=ceph.git cmake: use BuildDPDK if libdpdk not found Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2de40f0d7c6d..4cc2d027865c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)