Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-16 05:05:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-16 05:06:47 +0300
commit0c10374faf133083602aa54ded2450feff347a7d (patch)
tree32f6f10dd78574bc9dd8d0f393d460d710413daa /build_files/cmake/config/bpy_module.cmake
parentd438120fe3ff564d8b3184aca82060f76b4829c0 (diff)
CMake: disable jemalloc when building as a Python module
Diffstat (limited to 'build_files/cmake/config/bpy_module.cmake')
-rw-r--r--build_files/cmake/config/bpy_module.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_files/cmake/config/bpy_module.cmake b/build_files/cmake/config/bpy_module.cmake
index 64f7f78a286..1637bbf9506 100644
--- a/build_files/cmake/config/bpy_module.cmake
+++ b/build_files/cmake/config/bpy_module.cmake
@@ -30,3 +30,8 @@ set(WITH_INTERNATIONAL OFF CACHE BOOL "" FORCE)
set(WITH_BULLET OFF CACHE BOOL "" FORCE)
set(WITH_OPENVDB OFF CACHE BOOL "" FORCE)
set(WITH_ALEMBIC OFF CACHE BOOL "" FORCE)
+
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ # jemalloc causes linking error on import, disable.
+ set(WITH_MEM_JEMALLOC OFF CACHE BOOL "" FORCE)
+endif()