Merge pull request #10038 from taosdata/feature/define_new_macro

define BUILD_WITH_UV_TRANS
This commit is contained in:
Yihao Deng 2022-01-26 15:43:13 +08:00 committed by GitHub
commit e36ef3067a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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"

View File

@ -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})
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)