]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: fix the build WITH_DPDK=ON
authorKefu Chai <kchai@redhat.com>
Mon, 20 Aug 2018 14:11:02 +0000 (22:11 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 5 Sep 2018 05:53:57 +0000 (13:53 +0800)
commitc976f580e7f0a4f548e850cf7b04a74019242066
treedf0b068c5588fa930ccaa216150a4c28c9756e55
parentf87f3bafba4ab3aab31400b5860df4ac05a8bd9a
cmake: fix the build WITH_DPDK=ON

* add Findcryptopp.cmake back
  cryptopp support was dropped in #20015, but it's required by
  src/msg/async/dpdk/TCP.h, which `#include <cryptopp/md5.h>`
  so, to fix the FTBFS of WITH_DPDK=ON, we need to bring
  Findcryptopp.cmake back. it was also removed in #20015.
* pass "-march=core2" when building sources which include dpdk headers.
  i was wrong that the headers shipped by distro are generic.
  the headers use the sse instructions for speedup memcpy, see
  /usr/include/x86_64-linux-gnu/dpdk/rte_memcpy.h .
* also, we need to include the arch specific include directory
  for building with dpdk.

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