dont build blender/kernel if the game engines disabled.
[blender.git] / source / blender / windowmanager / CMakeLists.txt
index c39897af68aa029f9033784db750941f41793fe5..efdcd47ea720af02319c7a809cdd229d819a0029 100644 (file)
@@ -90,6 +90,10 @@ ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
 
+IF(WITH_GAMEENGINE)
+       ADD_DEFINITIONS(-DGAMEBLENDER)
+ENDIF(WITH_GAMEENGINE)
+
 IF(WIN32)
        LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)