mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-18 18:19:13 -05:00
Integrate jemalloc
This commit is contained in:
parent
033d2bf248
commit
c74d95c51d
2 changed files with 12 additions and 0 deletions
|
|
@ -187,6 +187,14 @@ add_definitions(-DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
|
|||
link_directories(${Boost_LIBRARY_DIRS})
|
||||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
||||
|
||||
find_library(JEMALLOC_LIBRARIES NAMES jemalloc)
|
||||
|
||||
if(JEMALLOC_LIBRARIES)
|
||||
message(STATUS "Found jemalloc: ${JEMALLOC_LIBRARIES}")
|
||||
else()
|
||||
message(WARNING "Couldn't find jemalloc")
|
||||
endif()
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,10 @@ add_executable(icinga-app
|
|||
|
||||
target_link_libraries(icinga-app ${base_DEPS})
|
||||
|
||||
if(JEMALLOC_LIBRARIES)
|
||||
target_link_libraries(icinga-app ${JEMALLOC_LIBRARIES})
|
||||
endif()
|
||||
|
||||
set_target_properties (
|
||||
icinga-app PROPERTIES
|
||||
FOLDER Bin
|
||||
|
|
|
|||
Loading…
Reference in a new issue