Integrate jemalloc

This commit is contained in:
Alexander A. Klimov 2021-04-12 12:12:55 +02:00
parent 033d2bf248
commit c74d95c51d
2 changed files with 12 additions and 0 deletions

View file

@ -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})

View file

@ -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