From 87a64bbad59c67b4a36d5f054fc2a9258ecf8afb Mon Sep 17 00:00:00 2001 From: Elias Cohenca Date: Wed, 22 Jan 2025 21:28:29 +0200 Subject: [PATCH] Configuration - fix jemalloc installation #281 --- adm/cmake/jemalloc.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adm/cmake/jemalloc.cmake b/adm/cmake/jemalloc.cmake index 4642c54226..8161700ad4 100644 --- a/adm/cmake/jemalloc.cmake +++ b/adm/cmake/jemalloc.cmake @@ -32,7 +32,12 @@ function (JEMALLOC_LIB_SEARCH MMGR_LIB PREFIX) list (APPEND 3RDPARTY_NO_LIBS 3RDPARTY_JEMALLOC_LIBRARY_DIR_${MMGR_LIB} PARENT_SCOPE) set (3RDPARTY_JEMALLOC_LIBRARY_${PREFIX}_${MMGR_LIB} "" PARENT_SCOPE) endif() - set (JEMALLOC_IS_STATIC_LIB ("${PREFIX}" STREQUAL "STATIC")) + + set(JEMALLOC_IS_STATIC_LIB FALSE) + if ("${PREFIX}" STREQUAL "STATIC") + set(JEMALLOC_IS_STATIC_LIB TRUE) + endif() + if (${JEMALLOC_IS_STATIC_LIB}) set (OLD_CSF_MMGR ${CSF_MMGR}) list (APPEND OLD_CSF_MMGR "${3RDPARTY_JEMALLOC_LIBRARY_${PREFIX}_${MMGR_LIB}}")