PThreads "fix" for CMake / MSVC
authorDalai Felinto <dfelinto@gmail.com>
Fri, 16 Apr 2010 23:58:12 +0000 (23:58 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 16 Apr 2010 23:58:12 +0000 (23:58 +0000)
I heard that the actual solution would be to remove #include <pthread.h> from BLI_threads.h
But in the mean time is not fair to CMake/MSVC to be the only system not building ;)

source/blender/gpu/CMakeLists.txt

index 26566857e03c0279d12c2cb03f1ffef0869d6558..126cddf852ffabd881109cb8155eac8c4520ec50 100644 (file)
@@ -30,6 +30,10 @@ SET(INC
        . ../blenlib ../blenkernel ../makesdna ../makesrna ../include
        ../../../extern/glew/include ../../../intern/guardedalloc ../../../intern/smoke/extern ../imbuf)
 
+IF(WIN32)
+       INCLUDE_DIRECTORIES(${PTHREADS_INC})
+ENDIF(WIN32)
+
 ADD_DEFINITIONS(-DGLEW_STATIC)
 
 BLENDERLIB(bf_gpu "${SRC}" "${INC}")