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: v14.0.1~884^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1c41870184a3857d94ccf2c77958e2f0aad8dad8;p=ceph-ci.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 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3868956ba5a..492a4c1997c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -691,8 +691,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})