Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-04-17 03:58:12 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-04-17 03:58:12 +0400
commit6562e6a4d1c12166b53322de131ed65867eb026d (patch)
tree2f5225fbf53970ac61068f24924b7d4768ac5e37 /source/blender/gpu/CMakeLists.txt
parenteea3d0225a653b4b634142bf635bf86a9c11cff0 (diff)
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 ;)
Diffstat (limited to 'source/blender/gpu/CMakeLists.txt')
-rw-r--r--source/blender/gpu/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt
index 26566857e03..126cddf852f 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -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}")