- added back zlib include (needed for win32).
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 Sep 2010 01:13:10 +0000 (01:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 Sep 2010 01:13:10 +0000 (01:13 +0000)
- use list append in more places.
- remove non existing include dir.

34 files changed:
CMakeLists.txt
extern/glew/CMakeLists.txt
intern/audaspace/CMakeLists.txt
intern/ghost/CMakeLists.txt
intern/smoke/CMakeLists.txt
source/blender/blenkernel/CMakeLists.txt
source/blender/blenlib/CMakeLists.txt
source/blender/blenpluginapi/CMakeLists.txt
source/blender/editors/armature/CMakeLists.txt
source/blender/editors/mesh/CMakeLists.txt
source/blender/editors/object/CMakeLists.txt
source/blender/editors/physics/CMakeLists.txt
source/blender/editors/render/CMakeLists.txt
source/blender/editors/screen/CMakeLists.txt
source/blender/editors/sculpt_paint/CMakeLists.txt
source/blender/editors/space_file/CMakeLists.txt
source/blender/editors/space_image/CMakeLists.txt
source/blender/editors/space_node/CMakeLists.txt
source/blender/editors/space_view3d/CMakeLists.txt
source/blender/imbuf/CMakeLists.txt
source/blender/makesrna/intern/CMakeLists.txt
source/blender/nodes/CMakeLists.txt
source/blender/python/CMakeLists.txt
source/blender/quicktime/CMakeLists.txt
source/blender/render/CMakeLists.txt
source/blender/windowmanager/CMakeLists.txt
source/creator/CMakeLists.txt
source/gameengine/BlenderRoutines/CMakeLists.txt
source/gameengine/Converter/CMakeLists.txt
source/gameengine/Expressions/CMakeLists.txt
source/gameengine/GameLogic/CMakeLists.txt
source/gameengine/Ketsji/CMakeLists.txt
source/gameengine/Ketsji/KXNetwork/CMakeLists.txt
source/gameengine/VideoTexture/CMakeLists.txt

index 0ca96fc..4fdc6b9 100644 (file)
@@ -309,8 +309,8 @@ IF(UNIX AND NOT APPLE)
 
        IF(WITH_OPENMP)
                LIST(APPEND LLIBS -lgomp)
-               LIST(APPEND CMAKE_C_FLAGS -fopenmp)
-               LIST(APPEND CMAKE_CXX_FLAGS -fopenmp)
+               SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
+               SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
        ENDIF(WITH_OPENMP)
 
 
@@ -401,8 +401,7 @@ IF(WIN32)
        ENDIF(WITH_QUICKTIME)
 
        IF(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
-               ADD_DEFINITIONS(-D__SSE__)
-               ADD_DEFINITIONS(-D__MMX__)
+               ADD_DEFINITIONS(-D__SSE__ -D__MMX__)
        ENDIF(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
 
        IF(MSVC)
@@ -865,8 +864,7 @@ IF(WITH_RAYOPTIMIZATION)
        IF(CMAKE_COMPILER_IS_GNUCC)
                IF(SUPPORT_SSE_BUILD)
                        SET(PLATFORM_CFLAGS " -msse ${PLATFORM_CFLAGS}")
-                       ADD_DEFINITIONS(-D__SSE__)
-                       ADD_DEFINITIONS(-D__MMX__)
+                       ADD_DEFINITIONS(-D__SSE__ -D__MMX__)
                ENDIF(SUPPORT_SSE_BUILD)
                IF(SUPPORT_SSE2_BUILD)
                        SET(PLATFORM_CFLAGS " -msse2 ${PLATFORM_CFLAGS}")
index 1c4faf0..b22c7ca 100644 (file)
@@ -27,7 +27,7 @@
 SET(INC include src)
 
 IF(UNIX)
-       SET(INC ${INC} ${X11_X11_INCLUDE_PATH})
+       LIST(APPEND INC ${X11_X11_INCLUDE_PATH})
 ENDIF(UNIX)
 
 SET(SRC
@@ -37,4 +37,3 @@ SET(SRC
 ADD_DEFINITIONS(-DGLEW_STATIC)
 
 BLENDERLIB(extern_glew "${SRC}" "${INC}")
-
index 5d73f95..6982bd8 100644 (file)
@@ -36,49 +36,43 @@ FILE(GLOB SRC
 )
 
 IF(WITH_FFMPEG)
-       LIST(APPEND INC ffmpeg)
-       LIST(APPEND INC ${FFMPEG_INC})
+       LIST(APPEND INC ffmpeg ${FFMPEG_INC})
        FILE(GLOB FFMPEGSRC ffmpeg/*.cpp)
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_SDL)
-       LIST(APPEND INC SDL)
-       LIST(APPEND INC ${SDL_INCLUDE_DIR})
+       LIST(APPEND INC SDL ${SDL_INCLUDE_DIR})
        FILE(GLOB SDLSRC SDL/*.cpp)
        ADD_DEFINITIONS(-DWITH_SDL)
 ENDIF(WITH_SDL)
 
 IF(WITH_OPENAL)
-       LIST(APPEND INC OpenAL)
-       LIST(APPEND INC ${OPENAL_INCLUDE_DIR})
+       LIST(APPEND INC OpenAL ${OPENAL_INCLUDE_DIR})
        FILE(GLOB OPENALSRC OpenAL/*.cpp)
        ADD_DEFINITIONS(-DWITH_OPENAL)
 ENDIF(WITH_OPENAL)
 
 IF(WITH_JACK)
-       LIST(APPEND INC jack)
-       LIST(APPEND INC ${JACK_INC})
+       LIST(APPEND INC jack ${JACK_INC})
        FILE(GLOB JACKSRC jack/*.cpp)
        ADD_DEFINITIONS(-DWITH_JACK)
 ENDIF(WITH_JACK)
 
 IF(WITH_SNDFILE)
-       LIST(APPEND INC sndfile)
-       LIST(APPEND INC ${SNDFILE_INC})
+       LIST(APPEND INC sndfile ${SNDFILE_INC})
        FILE(GLOB SNDFILESRC sndfile/*.cpp)
        ADD_DEFINITIONS(-DWITH_SNDFILE)
 ENDIF(WITH_SNDFILE)
 
 #IF(WITH_FFTW3)
-#      SET(INC ${INC} fftw ${FFTW3_INC})
+#      LIST(APPEND INC fftw ${FFTW3_INC})
 #      FILE(GLOB FFTW3SRC fftw/*.cpp)
 #      ADD_DEFINITIONS(-DWITH_FFTW3)
 #ENDIF(WITH_FFTW3)
 
 IF(WITH_PYTHON)
-       LIST(APPEND INC Python)
-       LIST(APPEND INC ${PYTHON_INC})
+       LIST(APPEND INC Python ${PYTHON_INC})
        FILE(GLOB PYTHONSRC Python/*.cpp)
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
index c6ffd4b..ec81ddf 100644 (file)
@@ -52,13 +52,13 @@ SET(SRC
 
 IF(APPLE)
        IF(WITH_COCOA)
-               SET(SRC ${SRC}
+               LIST(APPEND SRC
                        ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_DisplayManagerCocoa.mm
                        ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_SystemCocoa.mm
                        ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_WindowCocoa.mm
                )
        ELSE(WITH_COCOA)
-               SET(SRC ${SRC}
+               LIST(APPEND SRC
                        ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_DisplayManagerCarbon.cpp
                        ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_SystemCarbon.cpp
                        ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_WindowCarbon.cpp
@@ -69,18 +69,18 @@ IF(APPLE)
                ADD_DEFINITIONS(-DWITH_QUICKTIME)
        ENDIF(WITH_QUICKTIME)
 ELSEIF(WIN32)
-       SET(INC ${INC} ${WINTAB_INC})
+       LIST(APPEND INC ${WINTAB_INC})
 
-       SET(SRC ${SRC}
+       LIST(APPEND SRC
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_DisplayManagerWin32.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_SystemWin32.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_WindowWin32.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_DropTargetWin32.cpp
        )
 ELSEIF(UNIX)
-       SET(INC ${INC} ${X11_X11_INCLUDE_PATH})
+       LIST(APPEND INC ${X11_X11_INCLUDE_PATH})
 
-       SET(SRC ${SRC}
+       LIST(APPEND SRC
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_DisplayManagerX11.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_SystemX11.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/intern/GHOST_WindowX11.cpp
index f099efd..6c844cb 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(INC ${PNG_INC} ${ZLIB_INC} intern ../../extern/bullet2/src ../memutil ../guardealloc)
+SET(INC
+       intern
+       ../memutil
+       ../guardealloc
+       ../../extern/bullet2/src
+       ${PNG_INC}
+       ${ZLIB_INC}
+)
 
 FILE(GLOB SRC intern/*.cpp)
 
@@ -34,9 +41,8 @@ ENDIF(WITH_OPENMP)
 
 IF(WITH_FFTW3)
        ADD_DEFINITIONS(-DFFTW3=1)
-       SET(INC ${INC} ${FFTW3_INC})
+       LIST(APPEND INC ${FFTW3_INC})
 ENDIF(WITH_FFTW3)
 
-
 BLENDERLIB(bf_intern_smoke "${SRC}" "${INC}")
-#, libtype='blender', priority = 0 )
+
index 0603081..155d14f 100644 (file)
@@ -87,8 +87,7 @@ IF(WITH_IMAGE_HDR)
 ENDIF(WITH_IMAGE_HDR)
 
 IF(WITH_QUICKTIME)
-       LIST(APPEND INC ../quicktime)
-       LIST(APPEND INC ${QUICKTIME_INC})
+       LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
@@ -103,8 +102,7 @@ IF(WITH_LCMS)
 ENDIF(WITH_LCMS)
 
 IF(WITH_PYTHON)
-       LIST(APPEND INC ../python)
-       LIST(APPEND INC ${PYTHON_INC})
+       LIST(APPEND INC ../python ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index 998b3c6..77615b2 100644 (file)
@@ -34,6 +34,7 @@ SET(INC
        ../gpu
        ../../../intern/ghost
        ../../../intern/guardedalloc
+       ${ZLIB_INC}
        ${FREETYPE_INCLUDE_DIRS}
 )
 
@@ -45,7 +46,7 @@ SET(INC
 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_OPENMP)
index 2699b3b..42aa5ed 100644 (file)
@@ -31,11 +31,11 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_QUICKTIME)
-       SET(INC ${INC} ${QUICKTIME_INC})
+       LIST(APPEND INC ${QUICKTIME_INC})
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
index 9e22bbd..b563492 100644 (file)
@@ -33,7 +33,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_armature "${SRC}" "${INC}")
index 5f75ceb..4145f25 100644 (file)
@@ -34,7 +34,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_mesh "${SRC}" "${INC}")
index a41b9e8..10fbd62 100644 (file)
@@ -41,7 +41,7 @@ IF(NOT WITH_PYTHON)
 ENDIF(NOT WITH_PYTHON)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_object "${SRC}" "${INC}")
index be82665..49f20bb 100644 (file)
@@ -41,7 +41,7 @@ IF(WITH_OPENMP)
 ENDIF(WITH_OPENMP)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_physics "${SRC}" "${INC}")
index 2ecdc14..322e69c 100644 (file)
@@ -48,7 +48,7 @@ IF(WITH_OPENMP)
 ENDIF(WITH_OPENMP)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_render "${SRC}" "${INC}")
index 6bbd111..b6a8e27 100644 (file)
@@ -34,7 +34,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_screen "${SRC}" "${INC}")
index f0493d8..fb8382e 100644 (file)
@@ -35,7 +35,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_sculpt_paint "${SRC}" "${INC}")
index 5cbe9bb..207d83b 100644 (file)
@@ -61,7 +61,7 @@ IF(WITH_IMAGE_HDR)
 ENDIF(WITH_IMAGE_HDR)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_space_file "${SRC}" "${INC}")
index f644338..1c0a977 100644 (file)
@@ -47,7 +47,7 @@ IF(WITH_LCMS)
 ENDIF(WITH_LCMS)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_space_image "${SRC}" "${INC}")
index 0c8f9fc..06dd225 100644 (file)
@@ -36,7 +36,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 BLENDERLIB(bf_editor_space_node "${SRC}" "${INC}")
index a6945bb..ca9ad00 100644 (file)
@@ -42,7 +42,7 @@ IF(WITH_GAMEENGINE)
 ENDIF(WITH_GAMEENGINE)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 ADD_DEFINITIONS(-DGLEW_STATIC)
index 49886bd..c0023d4 100644 (file)
@@ -41,7 +41,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_IMAGE_OPENEXR)
index 9dbb2fd..4f9032f 100644 (file)
@@ -63,7 +63,7 @@ IF(NOT WITH_PYTHON)
 ENDIF(NOT WITH_PYTHON)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_GAMEENGINE)
@@ -95,17 +95,17 @@ IF(WITH_IMAGE_HDR)
 ENDIF(WITH_IMAGE_HDR)
 
 IF(WITH_QUICKTIME)
-       SET(INC ${INC} ../../quicktime)
+       LIST(APPEND INC ../../quicktime)
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
 IF(WITH_FFMPEG)
-       SET(INC ${INC} ${FFMPEG_INC})
+       LIST(APPEND INC ${FFMPEG_INC})
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_LCMS)
-       SET(INC ${INC} ${LCMS_INCLUDE_DIR})
+       LIST(APPEND INC ${LCMS_INCLUDE_DIR})
        ADD_DEFINITIONS(-DWITH_LCMS)
 ENDIF(WITH_LCMS)
 
index d5e8e37..8d8423c 100644 (file)
@@ -40,7 +40,7 @@ SET(INC
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_PYTHON)
index dcfc867..adb6052 100644 (file)
@@ -46,4 +46,3 @@ IF(WITH_BUILDINFO)
 ENDIF(WITH_BUILDINFO)
 
 BLENDERLIB(bf_python "${SRC}" "${INC}")
-
index 63b6558..8d993cb 100644 (file)
@@ -35,7 +35,6 @@ SET(INC
        ../quicktime
        ../makesdna
        ../makesrna
-       ../../../intern/guardedalloc
        ../blenlib
        ../blenkernel
        ../avi
@@ -46,9 +45,10 @@ SET(INC
        ../include
        ../windowmanager
        ../../../intern/audaspace/intern
+       ../../../intern/guardedalloc
+       ${QUICKTIME_INC}
 )
 
-SET(INC ${INC} ${QUICKTIME_INC})
 ADD_DEFINITIONS(-DWITH_QUICKTIME)
 
 BLENDERLIB(bf_quicktime "${SRC}" "${INC}")
index 1b6a29b..6896830 100644 (file)
 FILE(GLOB SRC intern/source/*.c intern/raytrace/*.cpp)
 
 SET(INC 
-       intern/include ../../../intern/guardedalloc ../blenlib ../makesdna
-       extern/include ../blenkernel ../imbuf
-       ../include ../../kernel/gen_messaging ../blenloader
-       ../../../intern/smoke/extern
+       intern/include
+       extern/include
+       ../blenlib
+       ../blenloader
+       ../makesdna
        ../makesrna
+       ../blenkernel
+       ../imbuf
+       ../include
+       ../../kernel/gen_messaging
+       ../../../intern/smoke/extern
+       ../../../intern/guardedalloc
 )
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_IMAGE_OPENEXR)
@@ -43,14 +50,14 @@ IF(WITH_IMAGE_OPENEXR)
 ENDIF(WITH_IMAGE_OPENEXR)
 
 IF(WITH_QUICKTIME)
-       SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
+       LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
 IF(APPLE)
        IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
-               SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
-               SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
+               LIST(APPEND CMAKE_C_FLAGS_RELEASE -mfpmath=sse)
+               LIST(APPEND CMAKE_CXX_FLAGS_RELEASE -mfpmath=sse)
        ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
 ENDIF(APPLE)
 
index a96cce5..1919bf8 100644 (file)
 
 FILE(GLOB SRC intern/*.c)
 
-SET(INC .
-       ../editors/include
-       ../../../intern/guardedalloc ../../../intern/memutil
-       ../blenlib ../makesdna ../makesrna ../blenkernel
-       ../include ../imbuf ../render/extern/include
-       ../blenloader
-       ../../kernel/gen_system ../readstreamglue
-       ../../../intern/elbeem/extern
-       ../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include
+SET(INC
+       .
        ../nodes
        ../gpu
        ../blenfont
+       ../blenlib
+       ../makesdna
+       ../makesrna
+       ../blenkernel
+       ../include
+       ../imbuf
+       ../blenloader
+       ../editors/include
+       ../render/extern/include
+       ../../kernel/gen_system
+       ../../../intern/guardedalloc
+       ../../../intern/memutil
+       ../../../intern/elbeem/extern
+       ../../../intern/ghost
+       ../../../intern/opennl/extern
+       ../../../extern/glew/include
        ${OPENGL_INCLUDE_DIR}
 )
 
@@ -52,23 +61,23 @@ IF(WITH_OPENCOLLADA)
 ENDIF(WITH_OPENCOLLADA)
 
 IF(WITH_QUICKTIME)
-       SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
+       LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
 IF(WITH_FFMPEG)
-       SET(INC ${INC} ${FFMPEG_INC})
+       LIST(APPEND INC ${FFMPEG_INC})
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ../python ${PYTHON_INC})
+       LIST(APPEND INC ../python ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
 
 IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
+       LIST(APPEND INC ${PTHREADS_INC})
 ENDIF(WIN32)
 
 IF(WITH_COCOA)
index c4e01ba..1e6ae8a 100644 (file)
@@ -95,12 +95,14 @@ IF(WIN32)
 ENDIF(WIN32)
 
 IF(WITH_BUILDINFO)
-       ADD_DEFINITIONS(-DBUILD_DATE="${BUILD_DATE}")
-       ADD_DEFINITIONS(-DBUILD_TIME="${BUILD_TIME}")
-       ADD_DEFINITIONS(-DBUILD_REV="${BUILD_REV}")
-       ADD_DEFINITIONS(-DBUILD_PLATFORM="${CMAKE_SYSTEM_NAME}")
-       ADD_DEFINITIONS(-DBUILD_TYPE="${CMAKE_BUILD_TYPE}")
-       
+       ADD_DEFINITIONS(
+               -DBUILD_DATE="${BUILD_DATE}"
+               -DBUILD_TIME="${BUILD_TIME}"
+               -DBUILD_REV="${BUILD_REV}"
+               -DBUILD_PLATFORM="${CMAKE_SYSTEM_NAME}"
+               -DBUILD_TYPE="${CMAKE_BUILD_TYPE}"
+       )
+
        LIST(APPEND EXESRC buildinfo.c)
 ENDIF(WITH_BUILDINFO)
 
index 57d2856..853cba5 100644 (file)
@@ -44,7 +44,7 @@ IF(WITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index 97c367d..c5b8128 100644 (file)
@@ -64,7 +64,7 @@ SET(INC
 )
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index 85b5daa..126192d 100644 (file)
@@ -37,7 +37,7 @@ SET(INC
 )
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index 93183da..84d9158 100644 (file)
@@ -43,7 +43,7 @@ ELSE(WITH_SDL)
 ENDIF(WITH_SDL)
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index d8f6e31..eaead26 100644 (file)
@@ -70,7 +70,7 @@ ELSE(WITH_SDL)
 ENDIF(WITH_SDL)
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index ce3d8fa..106d1a8 100644 (file)
@@ -39,7 +39,7 @@ SET(INC
 )
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)
index 3af514c..34a3232 100644 (file)
@@ -58,7 +58,7 @@ IF(WITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
 IF(WITH_PYTHON)
-       SET(INC ${INC} ${PYTHON_INC})
+       LIST(APPEND INC ${PYTHON_INC})
 ELSE(WITH_PYTHON)
        ADD_DEFINITIONS(-DDISABLE_PYTHON)
 ENDIF(WITH_PYTHON)