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/editors/CMakeLists.txt
parentd1e836f75c7430e9e9b4b9cabf40e859b6d7fa78 (diff)
Added WITH_PYTHON as a cmake option
Diffstat (limited to 'source/blender/editors/CMakeLists.txt')
-rw-r--r--source/blender/editors/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/CMakeLists.txt b/source/blender/editors/CMakeLists.txt
index 22e1286d298..19a91d08d08 100644
--- a/source/blender/editors/CMakeLists.txt
+++ b/source/blender/editors/CMakeLists.txt
@@ -38,7 +38,6 @@ SET(INC ../windowmanager
../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include
../nodes
../gpu
- ${PYTHON_INC}
${SDL_INC}
)
@@ -62,6 +61,12 @@ IF(WITH_FFMPEG)
ADD_DEFINITIONS(-DWITH_FFMPEG)
ENDIF(WITH_FFMPEG)
+IF(WITH_PYTHON)
+ SET(INC ${INC} ${PYTHON_INC})
+ELSE(WITH_PYTHON)
+ ADD_DEFINITIONS(-DDISABLE_PYTHON)
+ENDIF(WITH_PYTHON)
+
IF(WIN32)
SET(INC ${INC} ${PTHREADS_INC})
ENDIF(WIN32)