Added WITH_PYTHON as a cmake option
[blender.git] / source / blender / editors / CMakeLists.txt
index 22e1286d2989c48c0311d241989986fd4756f3ea..19a91d08d08a8e97c2a3bb0369d8128638feb1fe 100644 (file)
@@ -38,7 +38,6 @@ SET(INC ../windowmanager
   ../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include
   ../nodes
   ../gpu
   ../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include
   ../nodes
   ../gpu
-  ${PYTHON_INC}
   ${SDL_INC}
 )
 
   ${SDL_INC}
 )
 
@@ -62,6 +61,12 @@ IF(WITH_FFMPEG)
   ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(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)
 IF(WIN32)
   SET(INC ${INC} ${PTHREADS_INC})
 ENDIF(WIN32)