Add ENABLE_VIP option to cmake

This commit is contained in:
Vincent Stumpf 2023-06-11 06:39:36 +00:00
parent 26dee6891b
commit 026c014eb2
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ option(ENABLE_MEMMGR "Enable memory manager (default=ON)" ON)
option(ENABLE_PROFILER "Enable profiler (default=OFF)" OFF) option(ENABLE_PROFILER "Enable profiler (default=OFF)" OFF)
option(ENABLE_EXTRA_BUILDBOT_CODE "Enable extra buildbot code (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_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 # Set a default build type if none was specified

View File

@ -186,6 +186,10 @@ if(ENABLE_EPOLL)
target_compile_definitions(common PRIVATE "-DSOCKET_EPOLL") target_compile_definitions(common PRIVATE "-DSOCKET_EPOLL")
endif() endif()
if(ENABLE_VIP)
target_compile_definitions(common INTERFACE "-DVIP_ENABLE")
endif()
target_include_directories(common PUBLIC target_include_directories(common PUBLIC
"${MYSQL_INCLUDE_DIRS}" "${MYSQL_INCLUDE_DIRS}"
"${ZLIB_INCLUDE_DIRS}" "${ZLIB_INCLUDE_DIRS}"