From: Kefu Chai Date: Sun, 8 Jul 2018 10:21:37 +0000 (+0800) Subject: cmake: do not depend on ${DPDK_LIBRARIES} if not using bundled dpdk X-Git-Tag: v13.2.2~32^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=136a04e3e7bf96a7b4574462790ed328bc6e8c4c;p=ceph.git cmake: do not depend on ${DPDK_LIBRARIES} if not using bundled dpdk ${DPDK_LIBRARIES} will be link flags instead of library targets if libdpdk is not built using the bundled source. Fixes: http://tracker.ceph.com/issues/24449 Signed-off-by: Kefu Chai (cherry picked from commit 1c41870184a3857d94ccf2c77958e2f0aad8dad8) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8fca928a5bd2..1f6041c6bd76 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -681,8 +681,9 @@ if(WITH_DPDK) add_library(common_async_dpdk STATIC ${common_async_dpdk_files}) # to ready the dpdk header files - add_dependencies(common_async_dpdk - ${DPDK_LIBRARIES}) + if(TARGET dpdk-ext) + add_dependencies(common_async_dpdk dpdk-ext) + endif() list(APPEND ceph_common_deps common_async_dpdk) target_link_libraries(common_async_dpdk ${DPDK_LIBRARIES})