From 17098393b2512e7794bddabf969e702c0e258def Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 21 Nov 2024 10:42:22 +0100 Subject: [PATCH] fix(cmake): fixed jemalloc from system. Signed-off-by: Federico Di Pierro --- cmake/modules/jemalloc.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/modules/jemalloc.cmake b/cmake/modules/jemalloc.cmake index 3f80ac7556f..bd9d1b11bf7 100644 --- a/cmake/modules/jemalloc.cmake +++ b/cmake/modules/jemalloc.cmake @@ -19,14 +19,15 @@ if(JEMALLOC_INCLUDE) # we already have JEMALLOC elseif(NOT USE_BUNDLED_JEMALLOC) find_path(JEMALLOC_INCLUDE jemalloc/jemalloc.h) + set(JEMALLOC_INCLUDE ${JEMALLOC_INCLUDE}/jemalloc) if(BUILD_SHARED_LIBS) set(JEMALLOC_LIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}) else() set(JEMALLOC_LIB_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX}) endif() - find_library(JEMALLOC_LIB NAMES jemalloc${JEMALLOC_LIB_SUFFIX}) + find_library(JEMALLOC_LIB NAMES libjemalloc${JEMALLOC_LIB_SUFFIX}) if(JEMALLOC_LIB) - message(STATUS "Found JEMALLOC: lib: ${JEMALLOC_LIB}") + message(STATUS "Found JEMALLOC: include: ${JEMALLOC_INCLUDE}, lib: ${JEMALLOC_LIB}") else() message(FATAL_ERROR "Couldn't find system jemalloc") endif()