fix for building as a python module
authorCampbell Barton <ideasman42@gmail.com>
Mon, 28 Nov 2011 07:02:38 +0000 (07:02 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 28 Nov 2011 07:02:38 +0000 (07:02 +0000)
source/blender/windowmanager/CMakeLists.txt

index 33bbcb74835dd0f0cc6ddffa050b4a0190132673..521074463e0668787b7ccef8f4788e5755947f0c 100644 (file)
@@ -105,6 +105,10 @@ if(WITH_CODEC_FFMPEG)
        add_definitions(-DWITH_FFMPEG)
 endif()
 
+if(WITH_HEADLESS)
+       add_definitions(-DWITH_HEADLESS)
+endif()
+
 if(WITH_PYTHON)
        list(APPEND INC
                ../python