diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-16 15:43:56 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-16 15:44:14 +0300 |
commit | b53728b1d25ca56fd88b0a8a013e68cd961e8ab9 (patch) | |
tree | d4f6c4b7adaa3b7c2488ab0c33ddda700a1025a3 /source | |
parent | 7fdffd735ff24b570a61faf5620e2c4b2f908be2 (diff) |
Fix broken build when using system Glew on linux.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 7 |
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) |