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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-04-16 15:43:56 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-04-16 15:44:14 +0300
commitb53728b1d25ca56fd88b0a8a013e68cd961e8ab9 (patch)
treed4f6c4b7adaa3b7c2488ab0c33ddda700a1025a3
parent7fdffd735ff24b570a61faf5620e2c4b2f908be2 (diff)
Fix broken build when using system Glew on linux.
-rw-r--r--source/blender/gpu/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt
index d7a03280894..02f31b9664e 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -124,9 +124,14 @@ set(SRC
)
set(LIB
- extern_glew
)
+if(NOT WITH_SYSTEM_GLEW)
+ list(APPEND LIB
+ ${BLENDER_GLEW_LIBRARIES}
+ )
+endif()
+
data_to_c_simple(shaders/gpu_shader_depth_only_frag.glsl SRC)
data_to_c_simple(shaders/gpu_shader_uniform_color_frag.glsl SRC)
data_to_c_simple(shaders/gpu_shader_checker_frag.glsl SRC)