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