]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: initialize dpdk_LIBRARIES with empty list
authorKefu Chai <kchai@redhat.com>
Sat, 31 Jul 2021 07:49:20 +0000 (15:49 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 31 Jul 2021 07:53:03 +0000 (15:53 +0800)
commitee378a34050b227677ee534161d159014f144a18
tree7e9e005969ef77d1f01747dff1b45c2bf81ca5a7
parent3adad9309a891baaafdae8ff653925b417acc2cd
cmake: initialize dpdk_LIBRARIES with empty list

set(dpdk_LIBRARIES) does not reset this variable, it leaves it
unchanged.

if pkg-config manages to find DPDK libraries, dpdk_LIBRARIES would be
set with a string like "rte_node;rte_graph;..." by
pkg_check_modules(dpdk QUIET libdpdk).

but we would want to set this variable to the import paths of the
required libraries. so reset it before appending them to this variable.

this change helps to address the build failure when building Ceph with
DPDK installed into system along with its .pc file.

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