Fix cmake compilation on Windows, adding pthread includes,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 1 Oct 2009 17:24:24 +0000 (17:24 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 1 Oct 2009 17:24:24 +0000 (17:24 +0000)
patch by Guillaume, thanks!

source/blender/blenpluginapi/CMakeLists.txt
source/blender/makesrna/intern/CMakeLists.txt
source/blender/nodes/CMakeLists.txt
source/blender/render/CMakeLists.txt

index 1c5e2697c01dc8a6160893af22b3727e47f81eac..e6087a001f8fdfc1d6229ca78eea0466d028a75d 100644 (file)
@@ -30,6 +30,10 @@ SET(INC
        . .. ../../../intern/guardedalloc ../blenlib ../imbuf ../makesdna
 )
 
+IF(WIN32)
+       SET(INC ${INC} ${PTHREADS_INC})
+ENDIF(WIN32)
+
 IF(WITH_QUICKTIME)
        SET(INC ${INC} ${QUICKTIME_INC})
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
index 50cf0b00b84fa19b5b232020dc2d4b4482e661b3..c9c02fbecdecb84154127493e3aedb4878528e78 100644 (file)
@@ -42,6 +42,10 @@ SET(SRC
 INCLUDE_DIRECTORIES(../../../../intern/guardedalloc .. ../../makesdna ../../blenkernel ../../blenlib ../../ikplugin ../../windowmanager ../../editors/include ../../imbuf ../../render/extern/include .)
 FILE(GLOB INC_FILES ../*.h ../../makesdna/*.h)
 
+IF(WIN32)
+       SET(INC ${INC} ${PTHREADS_INC})
+ENDIF(WIN32)
+
 IF(WITH_GAMEENGINE)
        ADD_DEFINITIONS(-DGAMEBLENDER)
 ENDIF(WITH_GAMEENGINE)
index df2567142ca463873f7ed0b02b76ef6599ba4222..58bee7e3acfe80d13650bf58d36038cbfe333378 100644 (file)
@@ -34,6 +34,10 @@ SET(INC
        ${ZLIB_INC}
 )
 
+IF(WIN32)
+       SET(INC ${INC} ${PTHREADS_INC})
+ENDIF(WIN32)
+
 IF(WITH_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
 ENDIF(WITH_OPENEXR)
index 3284f7ea79a91cf1b0942353d55c3420c1569096..b30bc4936a52fb6e5546cc357586b612f936cdf2 100644 (file)
@@ -34,6 +34,10 @@ SET(INC
        ../makesrna
 )
 
+IF(WIN32)
+       SET(INC ${INC} ${PTHREADS_INC})
+ENDIF(WIN32)
+
 IF(WITH_OPENEXR)
        ADD_DEFINITIONS(-DWITH_OPENEXR)
 ENDIF(WITH_OPENEXR)