[Bf-blender-cvs] [b53728b1d25] master: Fix broken build when using system Glew on linux.

Bastien Montagne noreply at git.blender.org
Tue Apr 16 14:44:24 CEST 2019


Commit: b53728b1d25ca56fd88b0a8a013e68cd961e8ab9
Author: Bastien Montagne
Date:   Tue Apr 16 14:43:56 2019 +0200
Branches: master
https://developer.blender.org/rBb53728b1d25ca56fd88b0a8a013e68cd961e8ab9

Fix broken build when using system Glew on linux.

===================================================================

M	source/blender/gpu/CMakeLists.txt

===================================================================

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)



More information about the Bf-blender-cvs mailing list