add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew...
[blender.git] / extern / CMakeLists.txt
index 999e609..d74c668 100644 (file)
@@ -35,7 +35,9 @@ if(WITH_BINRELOC)
        add_subdirectory(binreloc)
 endif()
 
-add_subdirectory(glew)
+if(WITH_BUILTIN_GLEW)
+       add_subdirectory(glew)
+endif()
 
 if(WITH_IMAGE_OPENJPEG AND (NOT UNIX OR APPLE))
        add_subdirectory(libopenjpeg)