mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
恢复使用jemalloc库
This commit is contained in:
parent
0c728827aa
commit
ef46945de6
@ -71,6 +71,14 @@ endif ()
|
|||||||
|
|
||||||
set(LINK_LIB_LIST zlmediakit zltoolkit)
|
set(LINK_LIB_LIST zlmediakit zltoolkit)
|
||||||
|
|
||||||
|
#默认链接jemalloc库避免内存碎片
|
||||||
|
find_package(JEMALLOC QUIET)
|
||||||
|
if(JEMALLOC_FOUND)
|
||||||
|
message(STATUS "found library:\"${JEMALLOC_LIBRARIES}\"")
|
||||||
|
include_directories(${JEMALLOC_INCLUDE_DIR})
|
||||||
|
list(APPEND LINK_LIB_LIST ${JEMALLOC_LIBRARIES})
|
||||||
|
endif()
|
||||||
|
|
||||||
#查找openssl是否安装
|
#查找openssl是否安装
|
||||||
find_package(OpenSSL QUIET)
|
find_package(OpenSSL QUIET)
|
||||||
if (OPENSSL_FOUND AND ENABLE_OPENSSL)
|
if (OPENSSL_FOUND AND ENABLE_OPENSSL)
|
||||||
|
Loading…
Reference in New Issue
Block a user