Skip to content

Commit

Permalink
cmake: set HAVE_DPDK if it's available
Browse files Browse the repository at this point in the history
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Jul 28, 2018
1 parent 7dd82bb commit a92fee7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a92fee7

Please sign in to comment.