mirror of https://gitee.com/bigwinds/arangodb
jemalloc is not REQUIRED if explicitly requested
This commit is contained in:
parent
31f9806ab6
commit
b3f0a4956e
|
@ -403,7 +403,8 @@ endif ()
|
|||
## JEMALLOC
|
||||
################################################################################
|
||||
|
||||
set(JEMALLOC_DEFAULT_VALUE ON)
|
||||
find_package(jemalloc)
|
||||
set(JEMALLOC_DEFAULT_VALUE ${JEMALLOC_FOUND})
|
||||
|
||||
if (WINDOWS OR SOLARIS OR USE_TCMALLOC)
|
||||
set(JEMALLOC_DEFAULT_VALUE OFF)
|
||||
|
@ -415,15 +416,11 @@ option(USE_JEMALLOC
|
|||
)
|
||||
|
||||
if (USE_JEMALLOC)
|
||||
find_package(jemalloc)
|
||||
|
||||
if (JEMALLOC_FOUND)
|
||||
add_definitions("-DARANGODB_HAVE_JEMALLOC=1")
|
||||
set(SYS_LIBS ${SYS_LIBS} ${JEMALLOC_jemalloc_LIBRARY})
|
||||
message(STATUS "Found JEMALLOC")
|
||||
else ()
|
||||
message(STATUS "Missing JEMALLOC")
|
||||
if (NOT JEMALLOC_FOUND)
|
||||
message(FATAL_ERROR "jemalloc build was requested but jemalloc not found")
|
||||
endif ()
|
||||
add_definitions("-DARANGODB_HAVE_JEMALLOC=1")
|
||||
set(SYS_LIBS ${SYS_LIBS} ${JEMALLOC_jemalloc_LIBRARY})
|
||||
endif ()
|
||||
|
||||
################################################################################
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
mkdir -p build-debian
|
||||
cd build-debian
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebug -DCMAKE_SKIP_RPATH=On -DUSE_OPTIMIZE_FOR_ARCHITECTURE=Off -DETCDIR=/etc -DCMAKE_INSTALL_PREFIX=/usr -DVARDIR=/var ..
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebug -DCMAKE_SKIP_RPATH=On -DUSE_OPTIMIZE_FOR_ARCHITECTURE=Off -DETCDIR=/etc -DCMAKE_INSTALL_PREFIX=/usr -DVARDIR=/var -DUSE_JEMALLOC=On ..
|
||||
make -j12
|
||||
cpack -G DEB --verbose
|
||||
cd ..
|
||||
|
|
Loading…
Reference in New Issue