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:
Diffstat (limited to 'intern/guardedalloc/CMakeLists.txt')
-rw-r--r--intern/guardedalloc/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/intern/guardedalloc/CMakeLists.txt b/intern/guardedalloc/CMakeLists.txt
index 642b04fdb60..29e4f553974 100644
--- a/intern/guardedalloc/CMakeLists.txt
+++ b/intern/guardedalloc/CMakeLists.txt
@@ -26,12 +26,18 @@
SET(INC .)
-FILE(GLOB SRC intern/*.c)
+SET(SRC
+ ./intern/mallocn.c
+)
+
+IF(WIN32)
+ LIST(APPEND SRC ./intern/mmap_win.c)
+ENDIF(WIN32)
BLENDERLIB(bf_intern_guardedalloc "${SRC}" "${INC}")
-# Override C++ alloc optional
+# Override C++ alloc, optional.
IF(WITH_CXX_GUARDEDALLOC)
- FILE(GLOB SRC cpp/*.cpp)
+ SET(SRC cpp/mallocn.cpp)
BLENDERLIB(bf_intern_guardedalloc_cpp "${SRC}" "${INC}")
ENDIF(WITH_CXX_GUARDEDALLOC)