CMake: disable jemalloc when building as a Python module
authorCampbell Barton <ideasman42@gmail.com>
Sat, 16 Mar 2019 02:05:54 +0000 (13:05 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 16 Mar 2019 02:06:47 +0000 (13:06 +1100)
build_files/cmake/config/bpy_module.cmake

index 64f7f78..1637bbf 100644 (file)
@@ -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()