mirror of https://gitee.com/bigwinds/arangodb
use snappy target (#9312)
This commit is contained in:
parent
ddb2e14e32
commit
a714290796
|
@ -69,20 +69,20 @@ if (WITH_SNAPPY)
|
|||
set(SNAPPY_INCLUDE $ENV{SNAPPY_INCLUDE})
|
||||
endif()
|
||||
|
||||
if(DEFINED ENV{SNAPPY_LIB_DEBUG})
|
||||
set(SNAPPY_LIB_DEBUG $ENV{SNAPPY_LIB_DEBUG})
|
||||
endif()
|
||||
|
||||
if(DEFINED ENV{SNAPPY_LIB_RELEASE})
|
||||
set(SNAPPY_LIB_RELEASE $ENV{SNAPPY_LIB_RELEASE})
|
||||
endif()
|
||||
# if(DEFINED ENV{SNAPPY_LIB_DEBUG})
|
||||
# set(SNAPPY_LIB_DEBUG $ENV{SNAPPY_LIB_DEBUG})
|
||||
# endif()
|
||||
#
|
||||
# if(DEFINED ENV{SNAPPY_LIB_RELEASE})
|
||||
# set(SNAPPY_LIB_RELEASE $ENV{SNAPPY_LIB_RELEASE})
|
||||
# endif()
|
||||
|
||||
set(SNAPPY_CXX_FLAGS -DSNAPPY)
|
||||
set(SNAPPY_LIBS debug ${SNAPPY_LIB_DEBUG} optimized ${SNAPPY_LIB_RELEASE})
|
||||
# set(SNAPPY_LIBS debug ${SNAPPY_LIB_DEBUG} optimized ${SNAPPY_LIB_RELEASE})
|
||||
|
||||
add_definitions(${SNAPPY_CXX_FLAGS})
|
||||
include_directories(${SNAPPY_INCLUDE})
|
||||
set (THIRDPARTY_LIBS ${THIRDPARTY_LIBS} ${SNAPPY_LIBS})
|
||||
set (THIRDPARTY_LIBS ${THIRDPARTY_LIBS} snappy)
|
||||
else ()
|
||||
message(STATUS "SNAPPY library is disabled")
|
||||
endif ()
|
||||
|
|
Loading…
Reference in New Issue