Added WITH_PYTHON as a cmake option
[blender.git] / source / creator / CMakeLists.txt
index 63e1a32949389230d98d9f4cf5883c109fda9a0f..5d26ccc04565d62cb48a6d97d6773bc7b5cde704 100644 (file)
@@ -38,7 +38,6 @@ INCLUDE_DIRECTORIES(../../intern/guardedalloc
   ../blender/imbuf
   ../blender/renderconverter
   ../blender/render/extern/include
-  ../blender/python
   ../blender/makesdna
   ../blender/gpu
   ../blender/windowmanager
@@ -57,6 +56,12 @@ IF(WITH_OPENEXR)
   ADD_DEFINITIONS(-DWITH_OPENEXR)
 ENDIF(WITH_OPENEXR)
 
+IF(WITH_PYTHON)
+  INCLUDE_DIRECTORIES(../blender/python)
+ELSE(WITH_PYTHON)
+  ADD_DEFINITIONS(-DDISABLE_PYTHON)
+ENDIF(WITH_PYTHON)
+
 IF(LINUX)
   ADD_DEFINITIONS(-DWITH_BINRELOC)
   INCLUDE_DIRECTORIES(${BINRELOC_INC})