]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: enable Finddpdk to find DPDK to be built
authorKefu Chai <kchai@redhat.com>
Thu, 24 Oct 2019 09:35:26 +0000 (17:35 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 24 Oct 2019 09:54:05 +0000 (17:54 +0800)
commita123c8525635e9283f00bdc213e63f3f7f4ca977
tree9e3845634f83bc88ced5fc2f1126f2e70c16802d
parentaa25f6202f8d2f75ac005382c69f4cf4001ebce3
cmake: enable Finddpdk to find DPDK to be built

find_package(dpdk...) is used by seastar to find DPDK if Seastar_DPDK is
enabled. but `build_dpdk()` only exposes `dpdk::dpdk`, and it does not
set the variables like `dpdk_INCLUDE_DIRS` and `dpdk_LIBRARIES` when it
gets called. so we need to adapt Finddpdk to query them from `dpdk::dpdk`
target.

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