From: Haomai Wang Date: Wed, 2 Nov 2016 16:24:03 +0000 (+0800) Subject: test/CMakeLists: only enable ceph_test_userspace when dpdk is true X-Git-Tag: v11.1.0~368^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=215136f73923a40b65c76e1e8831957816750a78;p=ceph-ci.git test/CMakeLists: only enable ceph_test_userspace when dpdk is true Signed-off-by: Haomai Wang --- diff --git a/src/test/msgr/CMakeLists.txt b/src/test/msgr/CMakeLists.txt index 6a1b15fdb01..5847b45f24f 100644 --- a/src/test/msgr/CMakeLists.txt +++ b/src/test/msgr/CMakeLists.txt @@ -35,6 +35,7 @@ set_target_properties(ceph_perf_msgr_client PROPERTIES COMPILE_FLAGS target_link_libraries(ceph_perf_msgr_client os global ${UNITTEST_LIBS}) # test_userspace_event +if(HAVE_DPDK) add_executable(ceph_test_userspace_event test_userspace_event.cc) set_target_properties(ceph_test_userspace_event PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) @@ -42,12 +43,12 @@ target_link_libraries(ceph_test_userspace_event global ${CMAKE_DL_LIBS} ${UNITTEST_LIBS}) +endif(HAVE_DPDK) install(TARGETS ceph_test_async_driver ceph_test_msgr ceph_test_async_networkstack - ceph_test_userspace_event ceph_perf_msgr_server ceph_perf_msgr_client DESTINATION ${CMAKE_INSTALL_BINDIR})