From de8504dc9884f520138da15dab0296cc45782e3a Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sat, 17 Mar 2018 15:13:43 +0100 Subject: make jemalloc optional at compile time --- CMakeScripts/DefineDependsandFlags.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'CMakeScripts') diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index a1ce9c16a..05de34db4 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -68,9 +68,13 @@ if(APPLE AND DEFINED ENV{CMAKE_PREFIX_PATH}) endif() -find_package(JeMalloc) -if (JEMALLOC_FOUND) - list(APPEND INKSCAPE_LIBS ${JEMALLOC_LIBRARIES}) +if(WITH_JEMALLOC) + find_package(JeMalloc) + if (JEMALLOC_FOUND) + list(APPEND INKSCAPE_LIBS ${JEMALLOC_LIBRARIES}) + else() + set(WITH_JEMALLOC OFF) + endif() endif() if(ENABLE_LCMS) -- cgit v1.2.3