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>2008-12-31 08:20:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-31 08:20:35 +0300
commit58c5fd7066a978af61d8287acaa7722e6de2219b (patch)
treee01d7fb6939efbd29941d3c7efd0a6198b073944 /source/blender/blenkernel
parentd1e836f75c7430e9e9b4b9cabf40e859b6d7fa78 (diff)
Added WITH_PYTHON as a cmake option
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt
index 30d62521d8f..0680827c548 100644
--- a/source/blender/blenkernel/CMakeLists.txt
+++ b/source/blender/blenkernel/CMakeLists.txt
@@ -28,14 +28,13 @@ FILE(GLOB SRC intern/*.c)
SET(INC
. ../../../intern/guardedalloc ../editors/include ../blenlib ../makesdna
- ../python ../render/extern/include ../../../intern/decimation/extern
+ ../render/extern/include ../../../intern/decimation/extern
../imbuf ../avi ../../../intern/elbeem/extern ../../../intern/opennl/extern
../../../intern/iksolver/extern ../blenloader ../quicktime
../../../intern/bmfont ../../../extern/bullet2/src
../nodes ../../../extern/glew/include ../gpu ../makesrna
${SDL_INC}
${ZLIB_INC}
- ${PYTHON_INC}
)
IF(WITH_VERSE)
@@ -65,7 +64,11 @@ IF(WITH_PLAYER)
SUBDIRS(bad_level_call_stubs)
ENDIF(WITH_PLAYER)
-ADD_DEFINITIONS(-DWITH_CCGSUBSURF)
+IF(WITH_PYTHON)
+ SET(INC ${INC} ../python ${PYTHON_INC})
+ELSE(WITH_PYTHON)
+ ADD_DEFINITIONS(-DDISABLE_PYTHON)
+ENDIF(WITH_PYTHON)
BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")