Add ENABLE_VIP option to cmake
This commit is contained in:
parent
26dee6891b
commit
026c014eb2
@ -20,6 +20,7 @@ option(ENABLE_MEMMGR "Enable memory manager (default=ON)" ON)
|
||||
option(ENABLE_PROFILER "Enable profiler (default=OFF)" OFF)
|
||||
option(ENABLE_EXTRA_BUILDBOT_CODE "Enable extra buildbot code (default=OFF)" OFF)
|
||||
option(ENABLE_EPOLL "Use epoll instead of select (default=OFF)" OFF)
|
||||
option(ENABLE_VIP "Enable VIP system (default=OFF)" OFF)
|
||||
|
||||
|
||||
# Set a default build type if none was specified
|
||||
|
||||
@ -186,6 +186,10 @@ if(ENABLE_EPOLL)
|
||||
target_compile_definitions(common PRIVATE "-DSOCKET_EPOLL")
|
||||
endif()
|
||||
|
||||
if(ENABLE_VIP)
|
||||
target_compile_definitions(common INTERFACE "-DVIP_ENABLE")
|
||||
endif()
|
||||
|
||||
target_include_directories(common PUBLIC
|
||||
"${MYSQL_INCLUDE_DIRS}"
|
||||
"${ZLIB_INCLUDE_DIRS}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user