diff options
author | Kefu Chai <kchai@redhat.com> | 2017-11-15 13:57:56 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2017-11-18 03:43:33 +0100 |
commit | dbe04b4a85de5d8d68da05f8d1a18af45cacbc78 (patch) | |
tree | f4b91c40d15dce59ba4636c1d05f8f1c6e6716f4 /CMakeLists.txt | |
parent | cmake: WITH_SPDK=ON by default (diff) | |
download | ceph-dbe04b4a85de5d8d68da05f8d1a18af45cacbc78.tar.xz ceph-dbe04b4a85de5d8d68da05f8d1a18af45cacbc78.zip |
cmake: refactor dpdk related code
* move the check of `USE_CRYPTOPP` to $top_srcdir/CMakeLists.txt
* remove reference of DPDK_LIBRARY, it's defined nowhere
* move the dpdk code to a single place
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2c6f3c64c0..2de40f0d7c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -348,6 +348,9 @@ endif() option(WITH_DPDK "Enable DPDK messaging" OFF) if(WITH_DPDK) + if(NOT USE_CRYPTOPP) + message(FATAL_ERROR "CRYPTOPP must be supported when enable DPDK.") + endif() find_package(dpdk) set(HAVE_DPDK ${DPDK_FOUND}) endif() |