@ -48,6 +48,7 @@ option(WITH_JEMALLOC "build with JeMalloc" OFF)
option ( WITH_SNAPPY "build with SNAPPY" OFF )
option ( WITH_SNAPPY "build with SNAPPY" OFF )
option ( WITH_LZ4 "build with lz4" OFF )
option ( WITH_LZ4 "build with lz4" OFF )
option ( WITH_ZLIB "build with zlib" OFF )
option ( WITH_ZLIB "build with zlib" OFF )
option ( WITH_ZSTD "build with zstd" OFF )
if ( MSVC )
if ( MSVC )
# D e f a u l t s c u r r e n t l y d i f f e r e n t f o r G F L A G S .
# D e f a u l t s c u r r e n t l y d i f f e r e n t f o r G F L A G S .
# W e w i l l a d d r e s s f i n d _ p a c k a g e w o r k a l i t t l e l a t e r
# W e w i l l a d d r e s s f i n d _ p a c k a g e w o r k a l i t t l e l a t e r
@ -108,7 +109,6 @@ else()
list ( APPEND THIRDPARTY_LIBS ${ LZ4_LIBRARIES } )
list ( APPEND THIRDPARTY_LIBS ${ LZ4_LIBRARIES } )
endif ( )
endif ( )
option ( WITH_ZSTD "build with zstd" OFF )
if ( WITH_ZSTD )
if ( WITH_ZSTD )
find_package ( zstd REQUIRED )
find_package ( zstd REQUIRED )
add_definitions ( -DZSTD )
add_definitions ( -DZSTD )
@ -307,14 +307,6 @@ if(DISABLE_STALL_NOTIF)
add_definitions ( -DROCKSDB_DISABLE_STALL_NOTIFICATION )
add_definitions ( -DROCKSDB_DISABLE_STALL_NOTIFICATION )
endif ( )
endif ( )
# U s e d t o r u n C I b u i l d a n d t e s t s s o w e c a n r u n f a s t e r
set ( OPTIMIZE_DEBUG_DEFAULT 0 ) # D e b u g b u i l d i s u n o p t i m i z e d b y d e f a u l t u s e - D O P T D B G = 1 t o o p t i m i z e
if ( DEFINED OPTDBG )
set ( OPTIMIZE_DEBUG ${ OPTDBG } )
else ( )
set ( OPTIMIZE_DEBUG ${ OPTIMIZE_DEBUG_DEFAULT } )
endif ( )
if ( DEFINED USE_RTTI )
if ( DEFINED USE_RTTI )
if ( USE_RTTI )
if ( USE_RTTI )
@ -342,8 +334,10 @@ else()
endif ( )
endif ( )
endif ( )
endif ( )
# U s e d t o r u n C I b u i l d a n d t e s t s s o w e c a n r u n f a s t e r
option ( OPTDBG "Build optimized debug build with MSVC" OFF )
if ( MSVC )
if ( MSVC )
if ( ( ${ OPTIMIZE_DEBUG } EQUAL 1 ) )
if ( OPTDBG )
message ( STATUS "Debug optimization is enabled" )
message ( STATUS "Debug optimization is enabled" )
set ( CMAKE_CXX_FLAGS_DEBUG "/Oxt /${RUNTIME_LIBRARY}d" )
set ( CMAKE_CXX_FLAGS_DEBUG "/Oxt /${RUNTIME_LIBRARY}d" )
else ( )
else ( )