]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/CMakeLists: only enable ceph_test_userspace when dpdk is true 10748/head
authorHaomai Wang <haomai@xsky.com>
Wed, 2 Nov 2016 16:24:03 +0000 (00:24 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 9 Nov 2016 03:39:20 +0000 (11:39 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/test/msgr/CMakeLists.txt

index 6a1b15fdb0171c971d069449f3049dd2159e3e37..5847b45f24f1dca1d9d45566a597b89efec06424 100644 (file)
@@ -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})