diff options
Diffstat (limited to 'source/blender/editors/CMakeLists.txt')
-rw-r--r-- | source/blender/editors/CMakeLists.txt | 7 |
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) |