Skip to content

Commit

Permalink
test/CMakeLists: only enable ceph_test_userspace when dpdk is true
Browse files Browse the repository at this point in the history
Signed-off-by: Haomai Wang <haomai@xsky.com>
  • Loading branch information
yuyuyu101 committed Nov 5, 2016
1 parent 5e4aa23 commit 7352f18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/msgr/CMakeLists.txt
Expand Up @@ -35,19 +35,20 @@ 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})
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})

0 comments on commit 7352f18

Please sign in to comment.