diff options
| author | 杨威 <[email protected]> | 2023-05-31 11:06:08 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2023-05-31 14:25:04 +0800 |
| commit | 46a9ffea8bf6fae42f23a7b767c64a61c681a98d (patch) | |
| tree | c86061764521ef2a6fef61556ad05040f6ab2125 /test | |
| parent | 1f5bd418edb6be4b614803d0be38942f0ab4cd7b (diff) | |
🦄 refactor(LIBEVENT_ENABLED): 增加LIBEVENT_ENABLED宏,支持可选编译libevent
停用libevent的同时停用sapp_timer功能
Diffstat (limited to 'test')
| -rw-r--r-- | test/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8cb1bc7..acccfed 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,7 +23,11 @@ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/sapp_devel.cpp "") set(LIBS sapp_dev dealpkt packet_io packet_io_pcap packet_io_marsio common config inner_plug gdev_assistant sapp_assistant plugctrl project timer dictator2 md5 symbol_check tomlc99_wrap MESA_socket_wrap timestamp_record - MESA_sleep dpdk_ip_hash cpu_limit timeout libevent-static libdabloom-static ) + MESA_sleep dpdk_ip_hash cpu_limit timeout libdabloom-static ) + +if(LIBEVENT_ENABLED) + set(LIBS ${LIBS} libevent-static) +endif() add_library(sapp_devel SHARED sapp_devel.cpp) target_link_libraries(sapp_devel -Wl,--whole-archive ${LIBS} -Wl,--no-whole-archive) |
