From 65fca39f77981db5a649d942f308fa457d18cb41 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Thu, 19 Jan 2012 07:12:30 +0000 Subject: Fix for building in release mode with scons. Change given thumbs up from JesterKing. --- source/blender/makesrna/intern/SConscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/makesrna/intern/SConscript') diff --git a/source/blender/makesrna/intern/SConscript b/source/blender/makesrna/intern/SConscript index b74972b204c..26fa793de9d 100644 --- a/source/blender/makesrna/intern/SConscript +++ b/source/blender/makesrna/intern/SConscript @@ -101,6 +101,10 @@ if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'): if env['WITH_BF_INTERNATIONAL']: defs.append('WITH_INTERNATIONAL') +if not env['BF_DEBUG']: + defs.append('NDEBUG') + + makesrna_tool.Append(CPPDEFINES=defs) makesrna_tool.Append (CPPPATH = Split(incs)) -- cgit v1.2.3