add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew...
[blender.git] / build_files / cmake / macros.cmake
index 24dc058..a4a6922 100644 (file)
@@ -138,6 +138,10 @@ macro(setup_liblinks
                endif()
        endif()
 
+       if(NOT WITH_BUILTIN_GLEW)
+               target_link_libraries(${target} ${GLEW_LIBRARY})
+       endif()
+
        target_link_libraries(${target} ${OPENGL_glu_LIBRARY} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
        target_link_libraries(${target} ${FREETYPE_LIBRARY})