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>2011-03-24 03:14:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-24 03:14:49 +0300
commitc210b3991a074f27af80178c85d0658c4041480b (patch)
tree91f7029e54325c125411896aba150caa7f78be05 /CMakeLists.txt
parent261f74115daf8d1622c60a85ec1e0f3faef641fc (diff)
support for blender as a module on win32.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d860d525289..afb3d71a0ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1017,6 +1017,13 @@ if(WITH_OPENMP)
endif()
#-----------------------------------------------------------------------------
+# Configure Python.
+
+if(WITH_PYTHON_MODULE)
+ add_definitions(-DPy_ENABLE_SHARED)
+endif()
+
+#-----------------------------------------------------------------------------
# Extra compile flags
if((NOT WIN32) AND (NOT MSVC))