[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28239] trunk/blender/source/blender/gpu/ CMakeLists.txt: PThreads "fix" for CMake / MSVC
Dalai Felinto
dfelinto at gmail.com
Sat Apr 17 01:58:53 CEST 2010
Revision: 28239
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28239
Author: dfelinto
Date: 2010-04-17 01:58:12 +0200 (Sat, 17 Apr 2010)
Log Message:
-----------
PThreads "fix" for CMake / MSVC
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 ;)
Modified Paths:
--------------
trunk/blender/source/blender/gpu/CMakeLists.txt
Modified: trunk/blender/source/blender/gpu/CMakeLists.txt
===================================================================
--- trunk/blender/source/blender/gpu/CMakeLists.txt 2010-04-16 22:42:35 UTC (rev 28238)
+++ trunk/blender/source/blender/gpu/CMakeLists.txt 2010-04-16 23:58:12 UTC (rev 28239)
@@ -30,6 +30,10 @@
. ../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}")
More information about the Bf-blender-cvs
mailing list