提交 1a543e56 编写于 作者: dengyihao's avatar dengyihao

define BUILD_WITH_UV_TRANS

上级 7d700361
...@@ -50,6 +50,12 @@ option( ...@@ -50,6 +50,12 @@ option(
OFF OFF
) )
option(
BUILD_WITH_UV_TRANS
"If build with libuv_trans "
OFF
)
option( option(
BUILD_WITH_CRAFT BUILD_WITH_CRAFT
"If build with canonical-raft" "If build with canonical-raft"
......
...@@ -13,7 +13,7 @@ target_link_libraries( ...@@ -13,7 +13,7 @@ target_link_libraries(
PUBLIC util PUBLIC util
PUBLIC common PUBLIC common
) )
if (${BUILD_WITH_UV}) if (${BUILD_WITH_UV_TRANS})
target_include_directories( target_include_directories(
transport transport
PUBLIC "${CMAKE_SOURCE_DIR}/contrib/libuv/include" PUBLIC "${CMAKE_SOURCE_DIR}/contrib/libuv/include"
...@@ -25,7 +25,7 @@ if (${BUILD_WITH_UV}) ...@@ -25,7 +25,7 @@ if (${BUILD_WITH_UV})
PUBLIC uv_a PUBLIC uv_a
) )
add_definitions(-DUSE_UV) add_definitions(-DUSE_UV)
endif(${BUILD_WITH_UV}) endif(${BUILD_WITH_UV_TRANS})
if (${BUILD_TEST}) if (${BUILD_TEST})
add_subdirectory(test) add_subdirectory(test)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册