Lock-free memory allocator
[blender.git] / source / blender / makesdna / intern / CMakeLists.txt
index cae607949a914f943b1e5c03b661ae3af69df9ea..317141b14e300821792263db8cf4f96dd89f5717 100644 (file)
@@ -40,6 +40,8 @@ blender_include_dirs(
 set(SRC
        makesdna.c
        ../../../../intern/guardedalloc/intern/mallocn.c
+       ../../../../intern/guardedalloc/intern/mallocn_guarded_impl.c
+       ../../../../intern/guardedalloc/intern/mallocn_lockfree_impl.c
 )
 
 if(WIN32 AND NOT UNIX)
@@ -50,11 +52,6 @@ endif()
 
 # SRC_DNA_INC is defined in the parent dir
 
-# for mallocn.c
-if (WITH_GUARDEDALLOC)
-       add_definitions(-DWITH_GUARDEDALLOC)
-endif()
-
 add_executable(makesdna ${SRC} ${SRC_DNA_INC})
 
 # Output dna.c