diff --git a/source/blender/python/SConscript b/source/blender/python/SConscript index a79138f9eb5..012bc279cfb 100644 --- a/source/blender/python/SConscript +++ b/source/blender/python/SConscript @@ -18,7 +18,7 @@ sources = env.Glob('bmesh/*.c') env.BlenderLib( libname = 'bf_python_bmesh', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [362,165]) # generic -defs = [] +defs = ['GLEW_STATIC'] if is_debug: defs.append('_DEBUG') diff --git a/source/blender/python/generic/CMakeLists.txt b/source/blender/python/generic/CMakeLists.txt index 9a73911d697..eb8bd694231 100644 --- a/source/blender/python/generic/CMakeLists.txt +++ b/source/blender/python/generic/CMakeLists.txt @@ -46,4 +46,6 @@ set(SRC py_capi_utils.h ) +add_definitions(-DGLEW_STATIC) + blender_add_lib(bf_python_ext "${SRC}" "${INC}" "${INC_SYS}")