add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew...
[blender.git] / source / creator / CMakeLists.txt
index 1678edc..5be76de 100644 (file)
@@ -777,7 +777,6 @@ endif()
                extern_bullet
                ge_logic_loopbacknetwork
                bf_intern_moto
-               extern_glew
                extern_openjpeg
                extern_redcode
                ge_videotex
@@ -788,6 +787,10 @@ endif()
                bf_intern_mikktspace
        )
 
+    if(WITH_BUILTIN_GLEW)
+               list(APPEND BLENDER_SORTED_LIBS extern_glew)
+    endif()
+
        if(WITH_BINRELOC)
                list(APPEND BLENDER_SORTED_LIBS extern_binreloc)
        endif()