diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-04-17 03:58:12 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-04-17 03:58:12 +0400 |
commit | 6562e6a4d1c12166b53322de131ed65867eb026d (patch) | |
tree | 2f5225fbf53970ac61068f24924b7d4768ac5e37 | |
parent | eea3d0225a653b4b634142bf635bf86a9c11cff0 (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 ;)
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 4 |
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}") |