summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/DefineDependsandFlags.cmake
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-03-17 14:13:43 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-03-17 14:13:43 +0000
commitde8504dc9884f520138da15dab0296cc45782e3a (patch)
treea3902949c1db53a74624d96bd833b739f22dfc45 /CMakeScripts/DefineDependsandFlags.cmake
parentAdd font styles that use font variations to style list. (diff)
downloadinkscape-de8504dc9884f520138da15dab0296cc45782e3a.tar.gz
inkscape-de8504dc9884f520138da15dab0296cc45782e3a.zip
make jemalloc optional at compile time
Diffstat (limited to 'CMakeScripts/DefineDependsandFlags.cmake')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake10
1 files changed, 7 insertions, 3 deletions
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)