Audaspace: Buildsystem update after Ton destroyed building with scons and cmake,...
[blender.git] / intern / audaspace / CMakeLists.txt
index 2a757646e07441901163e93626235965737ab27f..7e226145adccc914177cc9f8788d598875c6913c 100644 (file)
@@ -63,7 +63,8 @@ ENDIF(WITH_SNDFILE)
 IF(WITH_PYTHON)
        SET(INC ${INC} Python ${PYTHON_INC})
        FILE(GLOB PYTHONSRC Python/*.cpp)
-       ADD_DEFINITIONS(-DWITH_PYTHON)
+ELSE(WITH_PYTHON)
+       ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
 
 SET(SRC ${SRC} ${FFMPEGSRC} ${SNDFILESRC} ${FFTW3SRC} ${SDLSRC} ${OPENALSRC} ${JACKSRC} ${PYTHONSRC})