diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2012-05-09 13:49:24 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2012-05-09 13:49:24 +0400 |
commit | ce45c004a3a80c6f30efda6bd14db49d9d571052 (patch) | |
tree | d9c22dd95e6256defe10c5796ace994ad4e2a949 /source | |
parent | d20c129a9cef276dd7d54c3cd03a6e4cfb024cfa (diff) |
classic compile error: GLEW_STATIC needs to be define when we use opengl functions
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/SConscript | 2 | ||||
-rw-r--r-- | source/blender/python/generic/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 1 deletions
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}") |