]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: do not depend on ${DPDK_LIBRARIES} if not using bundled dpdk
authorKefu Chai <kchai@redhat.com>
Sun, 8 Jul 2018 10:21:37 +0000 (18:21 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 8 Jul 2018 10:22:34 +0000 (18:22 +0800)
${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 <kchai@redhat.com>
src/CMakeLists.txt

index 3868956ba5ae723f8f3712442d36b9b58701551f..492a4c1997c5d4b5b7c2c225ffbe777e15034aa0 100644 (file)
@@ -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})